use response.status properly

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-10-06 11:37:59 +02:00
parent 56ea7edf63
commit f3463b176b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings-backend': patch
---
Use `Response.status` instead of `.send(number)`
@@ -114,7 +114,7 @@ export async function createRouterInternal(options: {
await options.userSettingsStore.delete({ userEntityRef, bucket, key });
res.send(204).end();
res.status(204).end();
});
router.use(errorHandler());