Skip to content

Commit

Permalink
typo: 더블 쿼터를 lint 규칙에 맞춰 싱글 쿼터로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
i3kae committed Nov 13, 2024
1 parent bb0428f commit 612d409
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/mainServer/src/host/host.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Request, Response } from 'express';
export class HostController {
constructor(private readonly hostService: HostService) {}

@Post("/")
@Post('/')
async generateStreamKey(@Req() req: Request, @Res() res: Response) {
try {
const host = req.headers['host'] as string;
Expand All @@ -18,7 +18,7 @@ export class HostController {
throw new HttpException('Bad Request', HttpStatus.BAD_REQUEST);
}
if (contentType !== 'application/json') {
throw new HttpException("Content-Type must be application/json", HttpStatus.BAD_REQUEST)
throw new HttpException('Content-Type must be application/json', HttpStatus.BAD_REQUEST);
}

const hostData = await this.hostService.generateStreamKey(uuid);
Expand All @@ -27,7 +27,7 @@ export class HostController {
if (error.status === 400) {
res.status(HttpStatus.BAD_REQUEST).json({
error: error.response
})
});
}
else {
res.status(HttpStatus.INTERNAL_SERVER_ERROR).json({
Expand Down

0 comments on commit 612d409

Please sign in to comment.