@likewatt/models 1.106.0 → 1.106.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.
@@ -40,7 +40,7 @@ __decorate([
40
40
  example: 'firstname.lastname@email.com',
41
41
  format: 'email',
42
42
  }),
43
- (0, mongoose_1.Prop)({ type: String, required: true }),
43
+ (0, mongoose_1.Prop)({ type: String, required: true, lowercase: true }),
44
44
  (0, class_validator_1.IsEmail)(),
45
45
  __metadata("design:type", String)
46
46
  ], Invitation.prototype, "email", void 0);
package/dist/core/User.js CHANGED
@@ -244,7 +244,7 @@ __decorate([
244
244
  example: 'firstname.lastname@email.com',
245
245
  format: 'email',
246
246
  }),
247
- (0, mongoose_1.Prop)({ type: String, required: true, unique: true }),
247
+ (0, mongoose_1.Prop)({ type: String, required: true, unique: true, lowercase: true }),
248
248
  (0, class_validator_1.IsEmail)(),
249
249
  __metadata("design:type", String)
250
250
  ], User.prototype, "email", void 0);
@@ -332,7 +332,7 @@ __decorate([
332
332
  description: 'Nom de la société',
333
333
  example: 'LIKEWATT',
334
334
  }),
335
- (0, mongoose_1.Prop)({ type: String, required: true }),
335
+ (0, mongoose_1.Prop)({ type: String, required: false }),
336
336
  (0, class_validator_1.IsOptional)(),
337
337
  (0, class_validator_1.IsString)(),
338
338
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.106.0",
3
+ "version": "1.106.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {