Skip to content

Commit

Permalink
chore: API reponse 변경 및 기본 공지 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
i3kae committed Dec 2, 2024
1 parent c4cbf1b commit 976ccff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/mainServer/src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const DEFAULT_VALUE = {
THUMBNAIL_IMG_URL : 'https://kr.object.ncloudstorage.com/web22/static/liboo_default_thumbnail.png',
NOTICE : '쾌적한 컨퍼런스 환경을 위해 상대방을 존중하는 언어를 사용해 주시길 바랍니다. 모두가 배움과 소통을 즐길 수 있는 문화를 함께 만들기에 동참해주세요.',
NOTICE : '쾌적한 컨퍼런스 환경을 위해 상대방을 존중하는 언어를 사용해 주시길 바랍니다.\n모두가 배움과 소통을 즐길 수 있는 문화를 함께 만들기에 동참해주세요.',
HOST_NAME : '방송 진행자',
};
4 changes: 2 additions & 2 deletions backend/mainServer/src/replay/replay.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class ReplayController {
try {
const replaySessions = this.memoryDBService.findAll().filter((info) => info.replay);
if (replaySessions.some((info) => info.sessionKey === videoId)) {
res.status(HttpStatus.OK).json({exited: true});
res.status(HttpStatus.OK).json({existed: true});
}
else {
res.status(HttpStatus.OK).json({exited: false});
res.status(HttpStatus.OK).json({existed: false});
}
} catch (err) {
console.log(err);
Expand Down
6 changes: 3 additions & 3 deletions backend/mainServer/src/streams/streams.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class StreamsController {
if (!sessionInfo) {
throw new HttpException('Bad Request', HttpStatus.BAD_REQUEST);
}
res.status(HttpStatus.OK).json({notice: sessionInfo.notice});
res.status(HttpStatus.OK).json({notice: sessionInfo.notice, channelName: sessionInfo.channel.channelName});
} catch (error) {
if ((error as { status: number }).status === 400) {
res.status(HttpStatus.BAD_REQUEST).json({
Expand All @@ -106,10 +106,10 @@ export class StreamsController {
try {
const liveSessions = this.memoryDBService.findAll().filter((info) => info.state);
if (liveSessions.some((info) => info.sessionKey === sessionKey)) {
res.status(HttpStatus.OK).json({exited: true});
res.status(HttpStatus.OK).json({existed: true});
}
else {
res.status(HttpStatus.OK).json({exited: false});
res.status(HttpStatus.OK).json({existed: false});
}
} catch (err) {
console.log(err);
Expand Down

0 comments on commit 976ccff

Please sign in to comment.