✨ Modifying the message for the phone number format
This commit is contained in:
parent
21837e8b91
commit
fb0edf7da4
2
dist/Notary/Contact.js
vendored
2
dist/Notary/Contact.js
vendored
@ -97,7 +97,7 @@ __decorate([
|
|||||||
}),
|
}),
|
||||||
(0, class_validator_1.Matches)(/^\+[2-9]{2,3}[0-9]{9}$/, {
|
(0, class_validator_1.Matches)(/^\+[2-9]{2,3}[0-9]{9}$/, {
|
||||||
groups: ["createCustomer", "updateCustomer"],
|
groups: ["createCustomer", "updateCustomer"],
|
||||||
message: "Le numéro de téléphone doit être au format 06XXXXXXXX",
|
message: "Le numéro de téléphone doit être au format 0X XX XX XX XX ou +33X XX XX XX XX",
|
||||||
}),
|
}),
|
||||||
__metadata("design:type", String)
|
__metadata("design:type", String)
|
||||||
], Contact.prototype, "cell_phone_number", void 0);
|
], Contact.prototype, "cell_phone_number", void 0);
|
||||||
|
@ -70,7 +70,8 @@ export default class Contact extends ContactCustomer {
|
|||||||
})
|
})
|
||||||
@Matches(/^\+[2-9]{2,3}[0-9]{9}$/, {
|
@Matches(/^\+[2-9]{2,3}[0-9]{9}$/, {
|
||||||
groups: ["createCustomer", "updateCustomer"],
|
groups: ["createCustomer", "updateCustomer"],
|
||||||
message: "Le numéro de téléphone doit être au format 06XXXXXXXX",
|
message:
|
||||||
|
"Le numéro de téléphone doit être au format 0X XX XX XX XX ou +33X XX XX XX XX",
|
||||||
})
|
})
|
||||||
public override cell_phone_number!: string;
|
public override cell_phone_number!: string;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user