bug issue, null users_id creation channel

This commit is contained in:
2023-12-16 17:00:38 +01:00
parent 92221926a1
commit 3be50e747d
4 changed files with 39 additions and 16 deletions

View File

@ -7,6 +7,12 @@ class Channels {
}
async createChannel(users_id, reload) {
users_id.forEach(user_id => {
if (user_id == null)
return console.log("createChannel error, null id;");
});
let response = await this.client._post("/api/chat/", {
users_id:users_id
});