fix asses.Next and do asses.Record

main
bel 2025-05-31 10:56:04 -06:00
parent 67840f6b28
commit 99c1061a18
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ func Next(ctx context.Context) (time.Time, error) {
ORDER BY executed_at DESC ORDER BY executed_at DESC
LIMIT 1 LIMIT 1
`) `)
return result.Did, err return result.Did.Add(time.Hour), err
} }
func Record(ctx context.Context) error { func Record(ctx context.Context) error {

View File

@ -39,7 +39,7 @@ func One(ctx context.Context) error {
return err return err
} }
return nil return asses.Record(ctx)
} }
func OneWith(ctx context.Context, rootds []string, cb CB) error { func OneWith(ctx context.Context, rootds []string, cb CB) error {