This commit is contained in:
2026-03-08 09:24:39 +03:30
parent 98c3e887b2
commit 656964e18d
2 changed files with 17 additions and 5 deletions
+2 -2
View File
@@ -140,9 +140,9 @@ export class AuthService {
const otpCode = await this.otpService.generateAndSetInCache(phone, "LOGIN");
//
await this.smsService.sendSmsVerifyCode(phone, otpCode);
// TODO : remove otp
return {
message: AuthMessage.OTP_SENT,
message: AuthMessage.OTP_SENT + otpCode,
};
}
+13 -1
View File
@@ -32,7 +32,19 @@ export class BarnameService {
if (!company) throw new BadRequestException(CompanyMessage.COMPANY_NOT_FOUND);
const bill = this.em.create(Barname,
{ carType, exitAt, origin, plaque, business, description, driverName, driverPhone, company, attachments });
{
carType,
exitAt,
origin,
plaque,
business,
description,
driverName,
driverPhone,
company,
attachments,
status: BarnameStatus.PENDING
});
await this.em.persistAndFlush(bill);