remove duplicate error

This commit is contained in:
jusax23 2023-03-31 21:41:41 +02:00
parent 3686c354c8
commit 3388ede069
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -275,13 +275,15 @@ export const joinRoom: Act = {
client.state == STATE.remote ? client.server.tag : "local",
0
).query(db);
if (queryx.affectedRows > 0) {
aws("ok", "");
/*if (queryx.affectedRows > 0) {
aws("ok", "");
} else {
aws("error", act_error.DUPLICATE);
}
}*/
} catch (error) {
aws("error", act_error.DUPLICATE);
aws("ok", "");
//aws("error", act_error.DUPLICATE);
}
}
@ -332,13 +334,15 @@ export const joinPublicRoom: Act = {
client.state == STATE.remote ? client.server.tag : "local",
0
).query(db);
if (queryx.affectedRows > 0) {
aws("ok", "");
/*if (queryx.affectedRows > 0) {
aws("ok", "");
} else {
aws("error", act_error.DUPLICATE);
}
}*/
} catch (error) {
aws("error", act_error.DUPLICATE);
aws("ok", "");
//aws("error", act_error.DUPLICATE);
}
}
};