Skip to content
Snippets Groups Projects
Unverified Commit aa7ad8a0 authored by Diego Sampaio's avatar Diego Sampaio Committed by GitHub
Browse files

Do not use deprecated express method (#18686)

parent 65f4cd1e
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ export class AppApisBridge {
// });
apiServer.use('/api/apps/private/:appId/:hash', (req, res) => {
const notFound = () => res.send(404);
const notFound = () => res.sendStatus(404);
const router = this.appRouters.get(req.params.appId);
......@@ -37,7 +37,7 @@ export class AppApisBridge {
});
apiServer.use('/api/apps/public/:appId', (req, res) => {
const notFound = () => res.send(404);
const notFound = () => res.sendStatus(404);
const router = this.appRouters.get(req.params.appId);
......
......@@ -141,7 +141,7 @@ export class AppUIKitInteractionApi {
try {
Promise.await(this.orch.triggerEvent('IUIKitInteractionHandler', action));
res.send(200);
res.sendStatus(200);
} catch (e) {
console.log(e);
res.status(500).send(e.message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment