@infrab4a/connect 0.14.0 → 0.14.1
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.
|
@@ -1044,11 +1044,11 @@
|
|
|
1044
1044
|
return [4 /*yield*/, this.userRepository.checkIfExistsByField('cpf', params.cpf)];
|
|
1045
1045
|
case 1:
|
|
1046
1046
|
if (_a.sent())
|
|
1047
|
-
throw new UserAlreadyRegisteredError("
|
|
1047
|
+
throw new UserAlreadyRegisteredError("Usu\u00E1rio com CPF " + params.cpf + " j\u00E1 registrado.");
|
|
1048
1048
|
return [4 /*yield*/, this.userRepository.checkIfExistsByField('email', params.email)];
|
|
1049
1049
|
case 2:
|
|
1050
1050
|
if (_a.sent())
|
|
1051
|
-
throw new UserAlreadyRegisteredError("
|
|
1051
|
+
throw new UserAlreadyRegisteredError("Usu\u00E1rio com e-mail " + params.email + " j\u00E1 registrado.");
|
|
1052
1052
|
return [4 /*yield*/, this.registerService.register({
|
|
1053
1053
|
birthday: params.birthday,
|
|
1054
1054
|
email: email,
|