Skip to content

Commit

Permalink
Do not use deprecated express method (#18686)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Aug 31, 2020
1 parent 65f4cd1 commit aa7ad8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/apps/server/bridges/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion app/apps/server/communication/uikit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa7ad8a

Please sign in to comment.