whitelabel-db 1.1.3 → 1.1.5
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/models/Guest.js +1 -1
- package/dist/models/Hotel.d.ts +1 -0
- package/dist/models/Hotel.js +7 -0
- package/package.json +1 -1
package/dist/models/Guest.js
CHANGED
|
@@ -29,7 +29,7 @@ const Project_1 = require("./Project");
|
|
|
29
29
|
let Guest = Guest_1 = class Guest extends sequelize_typescript_1.Model {
|
|
30
30
|
static checkEmail(email) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
if (yield Guest_1.findOne({ where: { email } })) {
|
|
32
|
+
if (yield Guest_1.findOne({ where: { email: email.toLowerCase() } })) {
|
|
33
33
|
throw new Error('This email is already registered to another account.');
|
|
34
34
|
}
|
|
35
35
|
});
|
package/dist/models/Hotel.d.ts
CHANGED
package/dist/models/Hotel.js
CHANGED
|
@@ -240,6 +240,13 @@ __decorate([
|
|
|
240
240
|
}),
|
|
241
241
|
__metadata("design:type", Boolean)
|
|
242
242
|
], Hotel.prototype, "bestSeller", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, sequelize_typescript_1.Column)({
|
|
245
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
246
|
+
allowNull: true,
|
|
247
|
+
}),
|
|
248
|
+
__metadata("design:type", String)
|
|
249
|
+
], Hotel.prototype, "reviewSentiment", void 0);
|
|
243
250
|
exports.Hotel = Hotel = __decorate([
|
|
244
251
|
(0, sequelize_typescript_1.Table)({
|
|
245
252
|
tableName: 'static_hotels',
|