stack/apps/backend
Bilal Godil b0367ca48d
Some checks failed
DB migration compat / Check if migrations changed (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
Use naive-UTC NOW() in terminal-subscription backfill
The Subscription timestamp columns are timezone-less and the app always
writes them as UTC, but bare NOW() is a timestamptz, so LEAST() and the
assignment would go through implicit session-timezone casts — on a non-UTC
session the capped-at-now branch would store a value shifted by the offset.
NOW() AT TIME ZONE 'UTC' stays in the naive-UTC domain throughout.

The tests now keep every timestamp comparison server-side in that same
domain (lower bound from the row's own createdAt instead of a JS-captured
clock): the driver's Date parse/serialize is tz-offset-asymmetric for
timezone-less columns, and the JS clock can't be assumed to agree with the
DB server clock.
2026-07-17 10:24:33 -07:00
..
prisma Use naive-UTC NOW() in terminal-subscription backfill 2026-07-17 10:24:33 -07:00
scripts Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
src Reject repurchase of winding-down Stripe subs instead of webhook reactivation 2026-07-17 09:42:33 -07:00
.env [Feat] [Refactor]: Implement Bulldozer JS (#1700) 2026-07-02 10:09:46 -07:00
.env.development [Feat] [Refactor]: Implement Bulldozer JS (#1700) 2026-07-02 10:09:46 -07:00
.eslintrc.cjs refactor: migrate config parsing from Babel AST to jiti (#1661) 2026-06-29 10:25:11 -07:00
.gitignore private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
instrumentation-client.ts Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
LICENSE Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
next.config.mjs Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
package.json Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
prisma.config.ts Rename STACK_* env vars to HEXCLAVE_* in env templates, with legacy dual-read (#1588) 2026-06-19 18:58:53 -07:00
tsconfig.json Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
vercel.json Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
vitest.config.ts Revert "Migrate backend transport from Next.js to ElysiaJS (WIP) (#1630)" 2026-07-13 12:38:53 -07:00
vitest.setup.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00