From d35c14fe4a2c6517f93b5e3f76c9ceb1113b3dce Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 10 Jul 2026 07:33:16 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E7=95=99=20Todo=20=E5=86=99?= =?UTF-8?q?=E5=90=8E=E5=81=A5=E5=BA=B7=E8=AE=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/microservices/todo-note/src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/microservices/todo-note/src/index.ts b/src/components/microservices/todo-note/src/index.ts index a0e6c3de..6dac1824 100644 --- a/src/components/microservices/todo-note/src/index.ts +++ b/src/components/microservices/todo-note/src/index.ts @@ -129,15 +129,20 @@ async function enqueueMutation(operation: () => Promise): Promise { function recordSuccessfulWrite(snapshot: TodoSnapshot, persisted: Record): void { const hash = snapshotHash(snapshot); + const config = gitStorage.summary(); storageState = { ok: true, initialized: true, checkedAt: new Date().toISOString(), - config: gitStorage.summary(), + config, verification: { ok: true, + primary: gitStorage.enabled() ? "github-repo" : "postgres", + instances: snapshot.instances.length, + reminderNotifications: snapshot.reminderNotifications.length, databaseHash: hash, gitHash: gitStorage.enabled() ? hash : null, + head: config.head, }, lastWrite: persisted, };