fix: Remove Pulse sensor section - references undefined flowerRoom

This commit is contained in:
fullsizemalt 2026-01-12 13:11:33 -08:00
parent 08992257bf
commit 875ae344f8

View file

@ -374,28 +374,7 @@ async function main() {
}
}
// ============================================
// PULSE SENSOR MAPPING
// ============================================
// Map Pulse sensor device 11666 to Flower Room
if (flowerRoom) {
const existingSensor = await prisma.sensor.findFirst({
where: { deviceId: '11666', type: 'VPD' }
});
if (!existingSensor) {
await prisma.sensor.create({
data: {
name: 'Veridian Demo Pulse',
type: 'VPD',
deviceId: '11666',
location: 'Flower Room',
isActive: true,
roomId: flowerRoom.id
} as any
});
console.log('Created Pulse sensor mapping for device 11666');
}
}
// Pulse sensor mapping skipped - requires proper Room entity setup
console.log('Seeding complete.');
}