fix(snapshots): persist lastConfirmedAt into snapshot metadata upon pull confirmation
CI / Typecheck, test, feed (push) Successful in 20s
CI / Build site (push) Successful in 11s
CI / Container image (push) Successful in 41s

Record lastConfirmedAt in snapshot metadata when a source is confirmed (200 or 304). This ensures git-committed snapshot metadata reflects when sources like wiki.gg were successfully pulled even when page HTML did not change, avoiding false pull overdue notices on downstream builds like GitHub Pages.
This commit is contained in:
Lucas Winther
2026-09-18 10:37:37 +02:00
parent f07607911b
commit 84441b6d6d
7 changed files with 40 additions and 15 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ async function latestFixture(adapterId: string, game: GameId) {
async function documentFor(adapterId: string, game: GameId) {
const cached = await snapshots.read(adapterId);
if (cached !== null) {
const rawConfirmed = cached.state.lastConfirmedAt;
const rawConfirmed = cached.meta.lastConfirmedAt ?? cached.state.lastConfirmedAt;
const contentChangedAt = cached.meta.contentChangedAt;
const lastConfirmedAt =
rawConfirmed !== null &&