Skip to content

Commit

Permalink
fix: 방송 정보 업데이트 API 수정
Browse files Browse the repository at this point in the history
방송 중일 때 Not Found를 반환하던 문제를 해결했습니다.
  • Loading branch information
JYKIM317 committed Nov 28, 2024
1 parent f1207b1 commit fbda556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applicationServer/src/live/live.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class LiveService {

async updateLiveData(tokenPayload, requestBody) {
const member = await this.memberService.findOneMemberWithCondition({ id: tokenPayload.memberId });
if (this.live.data.has(member.broadcast_id)) throw new HttpException('Not Found', HttpStatus.NOT_FOUND);
if (!this.live.data.has(member.broadcast_id)) throw new HttpException('Not Found', HttpStatus.NOT_FOUND);

if (requestBody.thumbnail) {
const imageData = Buffer.from(requestBody.thumbnail, 'base64');
Expand Down

0 comments on commit fbda556

Please sign in to comment.