diff --git a/backend/src/auth/auth.controller.ts b/backend/src/auth/auth.controller.ts index 3eda804..c1b7e65 100644 --- a/backend/src/auth/auth.controller.ts +++ b/backend/src/auth/auth.controller.ts @@ -55,8 +55,9 @@ export class AuthController { } @Post('send-otp') - sendOtp(@Body() dto: SendOtpDto) { - return this.auth.sendPhoneOtp(dto.phone); + async sendOtp(@Body() dto: SendOtpDto) { + await this.auth.sendPhoneOtp(dto.phone); + return { ok: true }; } @Post('phone')