get subscription in admin
This commit is contained in:
@@ -102,7 +102,9 @@ export class AuthService {
|
||||
this.configService.get<string>('JWT_REFRESH_EXPIRES_IN') ?? '7d';
|
||||
}
|
||||
|
||||
async requestOtp(mobile: string): Promise<{ message: string; code?: string }> {
|
||||
async requestOtp(
|
||||
mobile: string,
|
||||
): Promise<{ message: string; code?: string }> {
|
||||
const code = await this.sendOtp(mobile, this.otpExpiresInMinutes);
|
||||
return this.buildOtpRequestResponse(code);
|
||||
}
|
||||
@@ -114,9 +116,7 @@ export class AuthService {
|
||||
return this.requestOtp(mobile);
|
||||
}
|
||||
|
||||
async checkSalonMobile(
|
||||
mobile: string,
|
||||
): Promise<{ isRegistered: boolean }> {
|
||||
async checkSalonMobile(mobile: string): Promise<{ isRegistered: boolean }> {
|
||||
await this.ensureSalonMobileCanProceed(mobile);
|
||||
const isRegistered = await this.isSalonOwnerRegistered(mobile);
|
||||
return { isRegistered };
|
||||
|
||||
Reference in New Issue
Block a user