Skip to content

Commit

Permalink
build-system: Fix autocomplete error response (ampproject#26824)
Browse files Browse the repository at this point in the history
Resolve error "TypeError: res is not a function"
  • Loading branch information
mdmower authored Feb 15, 2020
1 parent c3522f6 commit 31c15e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ app.use('/form/autocomplete/query', (req, res) => {
});

app.use('/form/autocomplete/error', (req, res) => {
res(500);
res.status(500).end();
});

app.use('/form/mention/query', (req, res) => {
Expand Down

0 comments on commit 31c15e3

Please sign in to comment.