Update create room method

This commit is contained in:
2023-11-05 19:45:51 +07:00
parent 8f83b7d5a8
commit 0b9450a0ce
3 changed files with 13 additions and 13 deletions
@@ -154,7 +154,7 @@ const addRoom = async (room: TRoom): Promise<Nullable<TResponse<TRoom>>> => {
JSON.stringify(room)
);
if (response.statusCode !== STATUS_CODE.OK) {
if (response.statusCode !== STATUS_CODE.CREATE) {
throw new Error(errorMsg(response.statusCode, response.msg));
}