fix: fixed linter errors
This commit is contained in:
parent
faa2f58145
commit
7f670030a7
13 changed files with 23 additions and 28 deletions
|
@ -14,10 +14,10 @@ export const onlyAllowSender = authorize(
|
|||
|
||||
export const onlyAllowSenderBody = authorize(
|
||||
(auth: AuthenticationInfo, req: AuthenticatedRequest) =>
|
||||
req.body.sender === auth.username
|
||||
(req.body as { sender: string }).sender === auth.username
|
||||
);
|
||||
|
||||
export const onlyAllowReceiverBody = authorize(
|
||||
(auth: AuthenticationInfo, req: AuthenticatedRequest) =>
|
||||
req.body.receiver === auth.username
|
||||
(req.body as { receiver: string }).receiver === auth.username
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue