replace PHP in html with js & bugfixes

This commit is contained in:
2022-11-20 03:18:23 +01:00
parent 728b12107f
commit 0d3526221d
22 changed files with 634 additions and 233 deletions
+2
View File
@@ -7,6 +7,7 @@ import (
"context"
"database/sql"
"errors"
"github.com/rs/zerolog/log"
"time"
)
@@ -47,6 +48,7 @@ func (ac *AppContext) Value(key any) any {
func (ac *AppContext) Cancel() {
ac.cancelled = true
if ac.transaction != nil {
log.Error().Msg("Rollback transaction")
err := ac.transaction.Rollback()
if err != nil {
panic("failed to rollback transaction: " + err.Error())