dt-common-device 13.0.14 → 13.0.16
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.
package/dist/config/constants.js
CHANGED
|
@@ -66,8 +66,14 @@ exports.CONFIG_KEYS = {
|
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
REMOTE: {
|
|
69
|
-
env: [
|
|
70
|
-
|
|
69
|
+
env: [
|
|
70
|
+
"ADMIN_DB_URI",
|
|
71
|
+
"PMS_DB_URI",
|
|
72
|
+
"ACCESS_DB_URI",
|
|
73
|
+
"ADMIN_SERVICE",
|
|
74
|
+
"AWS_SQS_URL",
|
|
75
|
+
],
|
|
76
|
+
INTERNAL_EVENT_HANDLER: true,
|
|
71
77
|
db_keys: {
|
|
72
78
|
admin: "ADMIN_DB_URI",
|
|
73
79
|
pms: "PMS_DB_URI",
|
|
@@ -70,7 +70,7 @@ let ConnectionRepository = (() => {
|
|
|
70
70
|
return result.rows[0];
|
|
71
71
|
}
|
|
72
72
|
async getConnectionsByPropertyId(propertyId) {
|
|
73
|
-
const result = await this.pool.query(
|
|
73
|
+
const result = await this.pool.query(`SELECT * FROM dt_connections WHERE "propertyId" = $1`, [propertyId]);
|
|
74
74
|
if (result.rows.length === 0)
|
|
75
75
|
return [];
|
|
76
76
|
return result.rows;
|