From fbfdd9eee6f682d7b404ed6d44c59a61e55b2ae9 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 12 Apr 2023 00:02:08 +0530 Subject: [PATCH] fix: user signup response code Signed-off-by: Pranav C --- packages/nocodb-nest/src/modules/users/users.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nocodb-nest/src/modules/users/users.controller.ts b/packages/nocodb-nest/src/modules/users/users.controller.ts index 85b09adb31..a650f79d1f 100644 --- a/packages/nocodb-nest/src/modules/users/users.controller.ts +++ b/packages/nocodb-nest/src/modules/users/users.controller.ts @@ -3,12 +3,13 @@ import { Body, Controller, Get, + HttpCode, Param, Post, Request, Response, UseGuards, -} from '@nestjs/common'; +} from '@nestjs/common' import * as ejs from 'ejs'; import { AuthGuard } from '@nestjs/passport'; import { NcError } from '../../helpers/catchError'; @@ -31,6 +32,7 @@ export class UsersController { '/api/v1/db/auth/user/signup', '/api/v1/auth/user/signup', ]) + @HttpCode(200) async signup(@Request() req: any, @Response() res: any): Promise { res.json( await this.usersService.signup({