Merge pull request #137 from DeimosPr4/issue-error-user-service

fix error user service
This commit is contained in:
Eduardo Quiros 2022-07-29 00:35:48 -06:00 committed by GitHub
commit 0479a162c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import { Schema, Prop, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
var uniqueValidator = require('mongoose-unique-validator');
import { IsEmail, IsNotEmpty, IsString, Validate } from 'class-validator';
import { UserExistsRule } from 'src/exceptions/UserExistsRule';
export type UserDocument = User & Document;
@ -18,7 +17,6 @@ export class User {
last_name: string;
@Prop({required: true, unique: true})
@Validate(UserExistsRule)
email: string;
@Prop({required: true, unique: true})