fix(db): preserve serviceIds array for appointment lookups

The serviceIds array is still referenced by later seed code when
creating appointments. Restore it (populated from servicesDef) after
removing it from the ON CONFLICT path.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Barkley Trimsworth
2026-03-31 18:40:51 +00:00
committed by Barkley Trimsworth
parent 3c5394abef
commit 5dd76aa51f
+2
View File
@@ -431,7 +431,9 @@ async function seed() {
)
`);
const serviceIds: string[] = [];
for (const s of servicesDef) {
serviceIds.push(s.id);
await db.insert(schema.services)
.values({
id: s.id,