Skip to content

Commit

Permalink
adjust room live response
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhbaldwiyan committed May 19, 2023
1 parent 07a6da1 commit 19ea0f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions controller/rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ const Rooms = {

if (roomIsLive.length === 0) {
res.send({
message: "Member Not Live",
message: "Room Not Live",
is_live: false,
data: [],
});
}

res.send(roomIsLive);
res.send({
message: "Room Is Live",
is_live: true,
data: roomIsLive,
});
} catch (error) {
return error;
}
Expand Down

0 comments on commit 19ea0f9

Please sign in to comment.