fix(db): restore serviceIds array used in appointment seed lookups
The serviceIds array is referenced by later appointment creation code. Restore it inside the services loop. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -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