fix: Remove Pulse sensor section - references undefined flowerRoom
This commit is contained in:
parent
08992257bf
commit
875ae344f8
1 changed files with 1 additions and 22 deletions
|
|
@ -374,28 +374,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================
|
// Pulse sensor mapping skipped - requires proper Room entity setup
|
||||||
// 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');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('Seeding complete.');
|
console.log('Seeding complete.');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue