small fixes
This commit is contained in:
parent
220ead80fd
commit
8f4e1c83b0
|
@ -47,7 +47,7 @@ export function clamp(n, min, max) {
|
|||
*/
|
||||
export function dateToString(date) {
|
||||
// YYYY-MM-DD
|
||||
return ate.substring(0, 4) + date.substring(5, 7) + date.substring(8)
|
||||
return date.substring(0, 4) + date.substring(5, 7) + date.substring(8);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -106,7 +106,14 @@ class APISocketServer {
|
|||
return;
|
||||
}
|
||||
|
||||
const sendmsg = JSON.stringify(['msg', name, id, msg, country, channelId]);
|
||||
const sendmsg = JSON.stringify([
|
||||
'msg',
|
||||
name,
|
||||
parseInt(id, 10),
|
||||
msg,
|
||||
country,
|
||||
parseInt(channelId, 10),
|
||||
]);
|
||||
this.wss.clients.forEach((client) => {
|
||||
if (client !== ws
|
||||
&& client.subChat
|
||||
|
|
Loading…
Reference in New Issue
Block a user