From 98ecbbb52943f890f10d0f80531ee8f8ce3ca506 Mon Sep 17 00:00:00 2001 From: maru Date: Sun, 14 Apr 2024 20:15:25 -0400 Subject: [PATCH] Rename 'recordNewRun' to 'recordNewDaily' --- api/daily/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/daily/common.go b/api/daily/common.go index 134febe..ee900c3 100644 --- a/api/daily/common.go +++ b/api/daily/common.go @@ -44,14 +44,14 @@ func Init() error { secret = newSecret } - err = recordNewRun() + err = recordNewDaily() if err != nil { log.Print(err) } log.Printf("Daily Run Seed: %s", Seed()) - scheduler.Every(1).Day().At("00:00").Do(recordNewRun()) + scheduler.Every(1).Day().At("00:00").Do(recordNewDaily()) scheduler.StartAsync() return nil @@ -70,7 +70,7 @@ func deriveSeed(seedTime time.Time) []byte { return hashedSeed[:] } -func recordNewRun() error { +func recordNewDaily() error { err := db.TryAddDailyRun(Seed()) if err != nil { return err