fix: remove invalid posX, posY, notes from FacilityPosition seed
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-12 21:43:10 -08:00
parent b0cd3bdcf9
commit 96c7a2bf75

View file

@ -248,9 +248,6 @@ async function main() {
sectionCount++;
// Create plant positions for this section
const cellWidth = Math.floor(s.width / s.columns);
const cellHeight = Math.floor(s.height / s.rows);
for (let row = 0; row < s.rows; row++) {
for (let col = 0; col < s.columns; col++) {
await prisma.facilityPosition.create({
@ -258,10 +255,7 @@ async function main() {
sectionId: section.id,
row: row + 1,
column: col + 1,
posX: col * cellWidth + Math.floor(cellWidth / 2),
posY: row * cellHeight + Math.floor(cellHeight / 2),
status: 'EMPTY',
notes: null
status: 'EMPTY'
}
});
positionCount++;