Browse Source

fix: user signup response code

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
fbfdd9eee6
  1. 4
      packages/nocodb-nest/src/modules/users/users.controller.ts

4
packages/nocodb-nest/src/modules/users/users.controller.ts

@ -3,12 +3,13 @@ import {
Body, Body,
Controller, Controller,
Get, Get,
HttpCode,
Param, Param,
Post, Post,
Request, Request,
Response, Response,
UseGuards, UseGuards,
} from '@nestjs/common'; } from '@nestjs/common'
import * as ejs from 'ejs'; import * as ejs from 'ejs';
import { AuthGuard } from '@nestjs/passport'; import { AuthGuard } from '@nestjs/passport';
import { NcError } from '../../helpers/catchError'; import { NcError } from '../../helpers/catchError';
@ -31,6 +32,7 @@ export class UsersController {
'/api/v1/db/auth/user/signup', '/api/v1/db/auth/user/signup',
'/api/v1/auth/user/signup', '/api/v1/auth/user/signup',
]) ])
@HttpCode(200)
async signup(@Request() req: any, @Response() res: any): Promise<any> { async signup(@Request() req: any, @Response() res: any): Promise<any> {
res.json( res.json(
await this.usersService.signup({ await this.usersService.signup({

Loading…
Cancel
Save