Fix hotkeys blocking comments (#487)

* Fix hotkeys blocking comments

* Fix tests
This commit is contained in:
Charles Bochet
2023-07-01 02:09:49 +03:00
committed by GitHub
parent f08ff68530
commit 8684a8d517
16 changed files with 54 additions and 29 deletions

View File

@ -20,11 +20,11 @@ export class PersonCreateManyCompanyInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -20,11 +20,11 @@ export class PersonCreateManyWorkspaceInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -20,11 +20,11 @@ export class PersonCreateManyInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -21,11 +21,11 @@ export class PersonCreateWithoutCompanyInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -21,11 +21,11 @@ export class PersonCreateWithoutWorkspaceInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -22,11 +22,11 @@ export class PersonCreateInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -23,11 +23,11 @@ export class PersonGroupBy {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -20,11 +20,11 @@ export class PersonMaxAggregate {
lastName?: string;
@Field(() => String, {nullable:true})
@Validator.IsEmail()
@Validator.IsString()
email?: string;
@Field(() => String, {nullable:true})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone?: string;
@Field(() => String, {nullable:true})

View File

@ -20,11 +20,11 @@ export class PersonMinAggregate {
lastName?: string;
@Field(() => String, {nullable:true})
@Validator.IsEmail()
@Validator.IsString()
email?: string;
@Field(() => String, {nullable:true})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone?: string;
@Field(() => String, {nullable:true})

View File

@ -20,11 +20,11 @@ export class PersonUncheckedCreateWithoutCompanyInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -20,11 +20,11 @@ export class PersonUncheckedCreateWithoutWorkspaceInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -20,11 +20,11 @@ export class PersonUncheckedCreateInput {
lastName!: string;
@Field(() => String, {nullable:false})
@Validator.IsEmail()
@Validator.IsString()
email!: string;
@Field(() => String, {nullable:false})
@Validator.IsPhoneNumber()
@Validator.IsString()
phone!: string;
@Field(() => String, {nullable:false})

View File

@ -275,9 +275,9 @@ model Person {
firstName String
/// @Validator.IsString()
lastName String
/// @Validator.IsEmail()
/// @Validator.IsString()
email String
/// @Validator.IsPhoneNumber()
/// @Validator.IsString()
phone String
/// @Validator.IsString()
city String