fix: recover missing profile rows on save

This commit is contained in:
732642856
2026-07-18 11:46:42 +08:00
parent b5bb2926df
commit 681df09f83
3 changed files with 36 additions and 3 deletions
@@ -0,0 +1,8 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
test("upserts a missing profile when saving account details", () => {
const source = readFileSync(new URL("../src/app/page.tsx", import.meta.url), "utf8");
assert.match(source, /\.from\("profiles"\)\s*\.upsert\(/);
});