diff --git a/server/api/me/dashboard.get.ts b/server/api/me/dashboard.get.ts index 5f14bfb..ef7b742 100644 --- a/server/api/me/dashboard.get.ts +++ b/server/api/me/dashboard.get.ts @@ -82,9 +82,9 @@ export default defineEventHandler(async (event): Promise => { // terminal rejections, and a repo pending its first relayed push looks // identical to a fully-synced one. Keyed off the job payload's repo id. // `tangled.create-repo` covers enrolment/resync work, which shares the - // same `installationId`/`githubRepoId` payload shape as the ref-sync - // kinds; without it a permanently-failed enrolment was invisible here and - // read as healthy. + // same `installationId`/`githubRepoId` payload shape as the ref-sync kinds. + // Without it a dead enrolment sat at `enrolling` indefinitely, and a dead + // resync of an already-mirrored repo read as `ok`. db.select({ // bigint and count(*) both arrive as strings over the wire; coerce below. githubRepoId: sql`(${job.payload}->>'githubRepoId')::bigint`,