Skip to content

Commit

Permalink
Fix tx template not being cached on update. Closes #2061.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 5, 2024
1 parent 98fed80 commit 58b13af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func handleUpdateTemplate(c echo.Context) error {
}

// If it's a transactional template, cache it.
if o.Type == models.TemplateTypeTx {
if out.Type == models.TemplateTypeTx {
app.manager.CacheTpl(out.ID, &o)
}

Expand Down

0 comments on commit 58b13af

Please sign in to comment.