dt-common-device 13.0.7 → 13.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -224,10 +224,11 @@ let AdminRepository = (() => {
|
|
|
224
224
|
// Use default types if not provided
|
|
225
225
|
const zoneTypesToFilter = type || ["Guest Room", "Room"];
|
|
226
226
|
// Fetch zone type IDs for the specified type
|
|
227
|
+
// Using IN with unnest() for better compatibility with string arrays
|
|
227
228
|
const zoneTypesQuery = `
|
|
228
229
|
SELECT id
|
|
229
230
|
FROM "dt_zoneTypes"
|
|
230
|
-
WHERE name
|
|
231
|
+
WHERE name IN (SELECT unnest($1::text[]))
|
|
231
232
|
`;
|
|
232
233
|
const zoneTypes = await this.postgres.query(zoneTypesQuery, [
|
|
233
234
|
zoneTypesToFilter,
|