From 3fc1f6cc4eb3c574886fa617cdaef00f350450bb Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Mon, 12 Jan 2026 10:38:39 -0800 Subject: [PATCH] fix: Use correct Sensor field names in seed.ts (deviceId, isActive) --- backend/prisma/seed.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index c7a0fc9..05e24ad 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -384,16 +384,16 @@ async function main() { // Map Pulse sensor device 11666 to Flower Room if (flowerRoom) { const existingSensor = await prisma.sensor.findFirst({ - where: { externalId: '11666', type: 'VPD' } + where: { deviceId: '11666', type: 'VPD' } }); if (!existingSensor) { await prisma.sensor.create({ data: { name: 'Veridian Demo Pulse', type: 'VPD', - externalId: '11666', + deviceId: '11666', location: 'Flower Room', - status: 'ACTIVE', + isActive: true, roomId: flowerRoom.id } as any });