get subscription in admin

This commit is contained in:
2026-07-08 22:23:14 +03:30
parent 3250a6456b
commit 1dd2813a01
34 changed files with 188 additions and 119 deletions
+4 -4
View File
@@ -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 };