refactor: pre-cleanup.

This commit is contained in:
sam committed 2026-08-06 01:40:15 +10:00
1 parent 0ceab9d897
commit e10cbbc92c
53 files changed
+3596 -648

No files matched your search

+2 -2
View File
@@ -284,7 +284,7 @@ func (s *Store) Transition(ctx context.Context, taskID int64, from, to, detail s
if err != nil {
return err
}
defer tx.Rollback()
defer func() { _ = tx.Rollback() }()
res, err := tx.ExecContext(ctx,
`UPDATE tasks SET status=?, updated_at=datetime('now') WHERE id=? AND status=?`, to, taskID, from)
@@ -366,7 +366,7 @@ func (s *Store) Requeue(ctx context.Context, taskID int64, fromStatus, workflow
if err != nil {
return err
}
defer tx.Rollback()
defer func() { _ = tx.Rollback() }()
res, err := tx.ExecContext(ctx, `
UPDATE tasks SET status='queued',