Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use deprecated express API #18686

Merged
merged 1 commit into from
Aug 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -133,7 +133,7 @@ export class AppUIKitInteractionApi {
try {
Promise.await(this.orch.getBridges().getListenerBridge().uiKitInteractionEvent('IUIKitInteractionHandler', action));

res.send(200);
res.sendStatus(200);
} catch (e) {
console.log(e);
res.status(500).send(e.message);
Expand Down