remove the use of any from server.ts

This commit is contained in:
Jonathan Barrow 2023-10-03 12:51:47 -04:00
parent af863e4f19
commit 7884836013
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F

View File

@ -52,8 +52,8 @@ app.use((_request: express.Request, response: express.Response) => {
// non-404 error handler
LOG_INFO('Creating non-404 status handler');
app.use((error: any, _request: express.Request, response: express.Response, _next: express.NextFunction) => {
const status = error.status || 500;
app.use((_error: unknown, _request: express.Request, response: express.Response, _next: express.NextFunction) => {
const status = 500;
response.type('application/xml');
response.status(404);