fix asses.Next and do asses.Record
parent
67840f6b28
commit
99c1061a18
|
|
@ -26,7 +26,7 @@ func Next(ctx context.Context) (time.Time, error) {
|
|||
ORDER BY executed_at DESC
|
||||
LIMIT 1
|
||||
`)
|
||||
return result.Did, err
|
||||
return result.Did.Add(time.Hour), err
|
||||
}
|
||||
|
||||
func Record(ctx context.Context) error {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ func One(ctx context.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return asses.Record(ctx)
|
||||
}
|
||||
|
||||
func OneWith(ctx context.Context, rootds []string, cb CB) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue