remove duplicate error
This commit is contained in:
parent
3686c354c8
commit
3388ede069
1 changed files with 10 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue