chore: remote context.Context pointer (#2448)

remote context.Context pointer
This commit is contained in:
Athurg Gooth
2023-10-26 20:21:44 +08:00
committed by GitHub
parent bfdb33f26b
commit 215981dfde
4 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ func NewTelegramHandler(store *store.Store) *TelegramHandler {
}
func (t *TelegramHandler) BotToken(ctx context.Context) string {
return t.store.GetSystemSettingValueWithDefault(&ctx, apiv1.SystemSettingTelegramBotTokenName.String(), "")
return t.store.GetSystemSettingValueWithDefault(ctx, apiv1.SystemSettingTelegramBotTokenName.String(), "")
}
const (

View File

@@ -25,7 +25,7 @@ func NewBackupRunner(store *store.Store) *BackupRunner {
}
func (r *BackupRunner) Run(ctx context.Context) {
intervalStr := r.Store.GetSystemSettingValueWithDefault(&ctx, apiv1.SystemSettingAutoBackupIntervalName.String(), "")
intervalStr := r.Store.GetSystemSettingValueWithDefault(ctx, apiv1.SystemSettingAutoBackupIntervalName.String(), "")
if intervalStr == "" {
log.Debug("no SystemSettingAutoBackupIntervalName setting, disable auto backup")
return