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:
committed by
Barkley Trimsworth
parent
3c5394abef
commit
5dd76aa51f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user