Rename 'recordNewRun' to 'recordNewDaily'

fasthttp
maru 2024-04-14 20:15:25 -04:00
parent c3a3746639
commit 98ecbbb529
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
1 changed files with 3 additions and 3 deletions

View File

@ -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