Fix tx template not being cached on update. Closes #2061.

This commit is contained in:
Kailash Nadh 2024-10-05 09:51:56 +05:30
parent 98fed80b80
commit 58b13afa29

View file

@ -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)
}