auth
This commit is contained in:
@@ -140,9 +140,9 @@ export class AuthService {
|
|||||||
const otpCode = await this.otpService.generateAndSetInCache(phone, "LOGIN");
|
const otpCode = await this.otpService.generateAndSetInCache(phone, "LOGIN");
|
||||||
//
|
//
|
||||||
await this.smsService.sendSmsVerifyCode(phone, otpCode);
|
await this.smsService.sendSmsVerifyCode(phone, otpCode);
|
||||||
|
// TODO : remove otp
|
||||||
return {
|
return {
|
||||||
message: AuthMessage.OTP_SENT,
|
message: AuthMessage.OTP_SENT + otpCode,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,19 @@ export class BarnameService {
|
|||||||
if (!company) throw new BadRequestException(CompanyMessage.COMPANY_NOT_FOUND);
|
if (!company) throw new BadRequestException(CompanyMessage.COMPANY_NOT_FOUND);
|
||||||
|
|
||||||
const bill = this.em.create(Barname,
|
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);
|
await this.em.persistAndFlush(bill);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user