Skip to content

Commit

Permalink
update: package.json updatedd.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipOyelegbin committed Dec 14, 2024
1 parent e97b7f4 commit a2380e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion movie_api/src/auth/strategy/jwt.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { PrismaService } from 'src/prisma/prisma.service';
import { PrismaService } from '../../prisma/prisma.service';

@Injectable()
export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {
Expand Down
4 changes: 2 additions & 2 deletions movie_api/src/reservation/dto/create-reservation.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export class CreateReservationDto {
})
@IsNotEmpty({ message: 'The number of ticket can not be blank' })
@IsNumber({}, { message: 'The number of ticket must be a string' })
num_ticket: Number;
num_ticket: number;

@ApiProperty({
description: 'The ticket price for the reservation',
example: 50.25,
})
@IsNotEmpty({ message: 'The ticket price can not be blank' })
@IsNumber({}, { message: 'The ticket price must be a number' })
ticket_price: Number;
ticket_price: number;

@ApiProperty({
description: 'The movie id for the reservation',
Expand Down
2 changes: 1 addition & 1 deletion movie_api/src/reservation/dto/update-reservation.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export class UpdateReservationDto extends PartialType(CreateReservationDto) {
})
@IsString({ message: 'The status must be a string' })
@IsOptional()
status: String;
status: string;
}

0 comments on commit a2380e9

Please sign in to comment.