forked from Yara724/api
Fixed inquiry of birthdate
This commit is contained in:
@@ -564,6 +564,7 @@ export class SandHubService {
|
||||
const requestUrl = `${process.env.SANHUB_BASE_URL}/personal-inquiry/tejarat-no`;
|
||||
|
||||
const gregorianBirthdate = jalaliToGregorianDate(birthDate);
|
||||
console.log(gregorianBirthdate);
|
||||
if (!gregorianBirthdate) {
|
||||
throw new BadRequestException(
|
||||
`Invalid birth date for personal inquiry: ${birthDate}. Expected a Jalali date (e.g. 13770624 or "1377-06-24").`,
|
||||
|
||||
Reference in New Issue
Block a user