fix deed middleware officeMembership
This commit is contained in:
parent
6168683cfe
commit
34e248a247
@ -12,7 +12,7 @@ export default async function deedHandler(req: Request, response: Response, next
|
||||
|
||||
if (uid) {
|
||||
const deedService = Container.get(DeedsService);
|
||||
const deed = await deedService.getOneByUidWithOffice(uid);
|
||||
const deed = await deedService.getByUidWithOffice(uid);
|
||||
|
||||
if (!deed) {
|
||||
response.sendStatus(HttpCodes.NOT_FOUND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user