Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(payments): isolate retention failures and update scheduler regression
Timothy Yinab17773d0716
diff --git a/apps/admin b/apps/adminindex 133bde99..2e18ae57 160000--- a/apps/admin+++ b/apps/admin@@ -1 +1 @@-Subproject commit 133bde9980bbfb2c86f615179cba384cf658068a+Subproject commit 2e18ae5739b77ae994b49628974eea191a75434fdiff --git a/apps/cloud/server/plugins/payments.ts b/apps/cloud/server/plugins/payments.tsindex 56431f54..fec8f36e 100644--- a/apps/cloud/server/plugins/payments.ts+++ b/apps/cloud/server/plugins/payments.ts@@ -5,6 +5,9 @@ export default defineNitroPlugin((app) => {app.hooks.hook('cloudflare:scheduled', async ({ env }) => {const db = env.DB as PlatformD1 | undefined// Local data retention continues independently of payment availability.- if (db) await expirePaymentEventPayloads(db)+ if (db)+ await expirePaymentEventPayloads(db).catch(() =>+ console.error('payment_payload_expiry_failed'),+ )})})diff --git a/tests/portal-review-regressions.test.ts b/tests/portal-review-regressions.test.tsindex aa2b2c81..b8b91da8 100644--- a/tests/portal-review-regressions.test.ts+++ b/tests/portal-review-regressions.test.ts@@ -315,7 +315,7 @@ test('Overview data stays unknown before the first response and retains counts dassert.equal(media.albums.value.length, 1)})-test('Payment maintenance failures do not block authoritative reconciliation or expose raw errors', async () => {+test('Retired payment scheduler only runs local retention and never exposes raw errors', async () => {let scheduled: anyconst calls: string[] = [],logs: string[] = []@@ -353,11 +353,10 @@ test('Payment maintenance failures do not block authoritative reconciliation or},})await scheduled({ env: { DB: {}, NUXT_PLATFORM_STORAGE_SECRET: 'fixture' } })- assert.deepEqual(calls, ['sync', 'expiry', 'reconcile'])- assert.deepEqual(logs, [- 'payment_product_sync_failed',- 'payment_payload_expiry_failed',- ])+ assert.deepEqual(calls, ['expiry'])+ assert.deepEqual(logs, ['payment_payload_expiry_failed'])+ await scheduled({ env: {} })+ assert.deepEqual(calls, ['expiry'])})test('Primary billing workspace consistently prefers ownership then administrative membership', async () => {