use response.status properly
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user