@vendit-dev/thirdparty-adapters 0.3.28 → 0.3.30
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/lib/adapters/themrIoT.js +3 -5
- package/package.json +1 -1
package/lib/adapters/themrIoT.js
CHANGED
|
@@ -146,7 +146,7 @@ var ThemrIoTAdapter = /** @class */ (function () {
|
|
|
146
146
|
return [2 /*return*/, false];
|
|
147
147
|
case 7:
|
|
148
148
|
parsedCredential = this.parseJSONSafe(newAuth.credential);
|
|
149
|
-
return [4 /*yield*/, this.redis.set(ThemrIoTAdapter.indexAccommodation({ accommodationId: accommodationId }),
|
|
149
|
+
return [4 /*yield*/, this.redis.set(ThemrIoTAdapter.indexAccommodation({ accommodationId: accommodationId }), newAuth.credential, 'EX', 60 * 10)];
|
|
150
150
|
case 8:
|
|
151
151
|
_b.sent();
|
|
152
152
|
return [2 /*return*/, parsedCredential];
|
|
@@ -163,10 +163,8 @@ var ThemrIoTAdapter = /** @class */ (function () {
|
|
|
163
163
|
});
|
|
164
164
|
});
|
|
165
165
|
};
|
|
166
|
-
this.getDefaultCheckInDate = function () { return moment_1.default().format(_this.timeFormat); };
|
|
167
|
-
this.getDefaultCheckOutDate = function () {
|
|
168
|
-
return moment_1.default().add(3, 'd').format(_this.timeFormat);
|
|
169
|
-
};
|
|
166
|
+
this.getDefaultCheckInDate = function () { return moment_1.default().add(9, 'hours').format(_this.timeFormat); };
|
|
167
|
+
this.getDefaultCheckOutDate = function () { return moment_1.default().add(9, 'hours').add(3, 'd').format(_this.timeFormat); };
|
|
170
168
|
this.getAccommodationAccessToken = function (accommodationId) { return __awaiter(_this, void 0, void 0, function () {
|
|
171
169
|
var authInfo;
|
|
172
170
|
return __generator(this, function (_a) {
|