patch
parent
99f69e141e
commit
fa5dc6c535
|
@ -140,7 +140,8 @@ router.post('/broadcast', async (req, res, next) => {
|
||||||
|
|
||||||
let promises = [];
|
let promises = [];
|
||||||
for (const c of channels) {
|
for (const c of channels) {
|
||||||
promises.push(create_message(c, msg, author));
|
if (c !== 'session')
|
||||||
|
promises.push(create_message(c, msg, author));
|
||||||
}
|
}
|
||||||
|
|
||||||
await Promise.all(promises);
|
await Promise.all(promises);
|
||||||
|
|
Loading…
Reference in New Issue