Skip to content

Commit

Permalink
fix #1123
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Nov 26, 2023
1 parent 80b958d commit ffc899e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -127,9 +127,6 @@ private async ValueTask RefreshDailyNotesCoreAsync(bool forceRefresh)
{
WebDailyNote dailyNote = dailyNoteResponse.Data;

// 发送通知
await dailyNoteNotificationOperation.SendAsync(entry).ConfigureAwait(false);

// 集合内的实时便笺与数据库取出的非同一个对象,需要分别更新
// cache
await taskContext.SwitchToMainThreadAsync();
Expand All @@ -147,6 +144,9 @@ private async ValueTask RefreshDailyNotesCoreAsync(bool forceRefresh)
entry.UpdateDailyNote(dailyNote);
await dailyNoteDbService.UpdateDailyNoteEntryAsync(entry).ConfigureAwait(false);
await dailyNoteWebhookOperation.TryPostDailyNoteToWebhookAsync(dailyNote).ConfigureAwait(false);

// 发送通知
await dailyNoteNotificationOperation.SendAsync(entry).ConfigureAwait(false);
}
}
}
Expand Down

0 comments on commit ffc899e

Please sign in to comment.