aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware/event.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/middleware/event.js')
-rw-r--r--vnext/server/middleware/event.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/vnext/server/middleware/event.js b/vnext/server/middleware/event.js
index 136ae268..5681eb59 100644
--- a/vnext/server/middleware/event.js
+++ b/vnext/server/middleware/event.js
@@ -12,7 +12,6 @@ const allSandboxIds = [];
/**
* handle message event
- *
* @param {import('../../client').Message} msg message
*/
function processMessageEvent(msg) {
@@ -45,14 +44,15 @@ function processMessageEvent(msg) {
.filter(t => t.type === 'hcm')
.map(t => t.token);
log(`${user.uname}: ${hmsIds}`);
- send(msg, hmsIds).then(() => {}).catch(log);
+ send(msg, hmsIds).then(() => {
+ // TODO: handle results
+ }).catch(log);
});
}).catch(log);
}
/**
* Handle new events
- *
* @type {import('express').RequestParamHandler}
*/
export default function handleMessage(req, res) {