mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: remote context.Context pointer (#2448)
remote context.Context pointer
This commit is contained in:
@@ -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 (
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user