zone response zone-points added

This commit is contained in:
2025-04-11 09:23:44 +05:30
parent 40eb9d8fb9
commit c15ca51b9f
3 changed files with 75 additions and 40 deletions

View File

@@ -108,7 +108,7 @@ export class Zoneservice {
isArchive: false,
})
.select(
"panelOrder zoneName zonePoints lockedPanel zoneId viewPortCenter viewPortposition"
"panelOrder zoneName zonePoints lockedPanel zoneId viewPortCenter viewPortposition points"
);
if (!existingZone) {
return res.send({ message: "Zone not found for the UUID" });
@@ -146,7 +146,7 @@ export class Zoneservice {
activeSides: existingZone.panelOrder || [],
panelOrder: existingZone.panelOrder || [],
lockedPanels: existingZone.lockedPanel || [],
points: existingZone.zonePoints || [],
points: existingZone.points || [],
widgets: flattenedWidgets,
};
@@ -166,7 +166,7 @@ export class Zoneservice {
isArchive: false,
})
.select(
"panelOrder zoneName zonePoints lockedPanel zoneId viewPortCenter viewPortposition"
"panelOrder zoneName zonePoints lockedPanel zoneId viewPortCenter viewPortposition points"
);
if (!existingZones) {
return res.send({ message: "Zone not found for the UUID" });
@@ -205,7 +205,7 @@ export class Zoneservice {
activeSides: zone.panelOrder || [],
panelOrder: zone.panelOrder || [],
lockedPanels: zone.lockedPanel || [],
points: zone.zonePoints || [],
points: zone.points || [],
widgets: widgets.flat(),
};
})