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, };