aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-05-19 02:39:47 +0300
committerGravatar Vitaly Takmazov2023-05-19 02:54:34 +0300
commit71acbc9791ad42f99757feb9ed03e208fd09aa70 (patch)
tree02be8ff9af14bcc3592c442c95fe1596391856f6 /vnext/server/middleware
parent56c7241c2ff3e62b2f6f8064f985181f4387dd3d (diff)
Fix linter warnings
Diffstat (limited to 'vnext/server/middleware')
-rw-r--r--vnext/server/middleware/event.js6
-rw-r--r--vnext/server/middleware/oembed.js1
-rw-r--r--vnext/server/middleware/urlexpand.js1
3 files changed, 3 insertions, 5 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) {
diff --git a/vnext/server/middleware/oembed.js b/vnext/server/middleware/oembed.js
index 4ac2d337..8b1ed61d 100644
--- a/vnext/server/middleware/oembed.js
+++ b/vnext/server/middleware/oembed.js
@@ -2,7 +2,6 @@ import { embeddedTweet } from '../../src/api';
/**
* Return content for embedding
- *
* @type {import('express').RequestParamHandler}
*/
const oembed = async (req, res) => {
diff --git a/vnext/server/middleware/urlexpand.js b/vnext/server/middleware/urlexpand.js
index 730e2e8f..f78d1cc0 100644
--- a/vnext/server/middleware/urlexpand.js
+++ b/vnext/server/middleware/urlexpand.js
@@ -2,7 +2,6 @@ import { expandShortenedLink } from '../../src/api';
/**
* Expand URLs
- *
* @param {import("next").NextApiRequest} req
* @param {import("next").NextApiResponse} res
*/