dt-common-device 5.1.1 → 5.1.2
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.
|
@@ -52,7 +52,7 @@ let GuestRepository = (() => {
|
|
|
52
52
|
}
|
|
53
53
|
async getGuest(guestId) {
|
|
54
54
|
try {
|
|
55
|
-
const guest = await this.pmsPostgres.query(`SELECT * FROM
|
|
55
|
+
const guest = await this.pmsPostgres.query(`SELECT * FROM dt_guest WHERE "id" = $1`, [guestId]);
|
|
56
56
|
return guest.rows[0];
|
|
57
57
|
}
|
|
58
58
|
catch (error) {
|
|
@@ -91,7 +91,7 @@ let PropertyRepository = (() => {
|
|
|
91
91
|
return properties.rows.map((property) => property.id);
|
|
92
92
|
}
|
|
93
93
|
catch (error) {
|
|
94
|
-
throw new Error(
|
|
94
|
+
throw new Error(`Failed to get all properties: ${error?.message || JSON.stringify(error)}`);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
};
|
|
@@ -52,7 +52,7 @@ let ScheduleRepository = (() => {
|
|
|
52
52
|
}
|
|
53
53
|
async getSchedule(scheduleId) {
|
|
54
54
|
try {
|
|
55
|
-
const schedule = await this.pmsPostgres.query(`SELECT * FROM
|
|
55
|
+
const schedule = await this.pmsPostgres.query(`SELECT * FROM dt_schedule WHERE "id" = $1`, [scheduleId]);
|
|
56
56
|
return schedule.rows[0];
|
|
57
57
|
}
|
|
58
58
|
catch (error) {
|