Skip to content

Commit

Permalink
fix: reset religion enum in db
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed May 17, 2024
1 parent 324386f commit 5d403a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/entities/userInfo.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class UserInfoEntity {

@Column({
nullable: true,
type: 'enum',
enum: Religion,
})
religion?: Religion;

Expand Down
2 changes: 2 additions & 0 deletions src/point/point.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
ApiOperation,
ApiBody,
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { JwtPayload } from 'src/interfaces/auth';
import { PointService } from './point.service';
Expand All @@ -25,6 +26,7 @@ import { User } from 'src/decorators/accessUser.decorator';
import { AccessGuard } from 'src/auth/guard/access.guard';

@Controller('point')
@ApiTags('point')
export class PointController {
constructor(
private readonly pointService: PointService,
Expand Down
2 changes: 2 additions & 0 deletions src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
ApiOperation,
ApiBody,
ApiResponse,
ApiTags,
} from '@nestjs/swagger';
import { Request, Response } from 'express';
import { FcmService } from 'src/firebase/fcm.service';
Expand All @@ -24,6 +25,7 @@ import { UpdateProfileDto, UserProfileDto } from 'src/dtos/user.dto';
import { UserService } from './user.service';

@Controller('user')
@ApiTags('user')
export class UserController {
constructor(
private readonly userService: UserService,
Expand Down

0 comments on commit 5d403a8

Please sign in to comment.