fix deed middleware officeMembership

This commit is contained in:
OxSaitama 2023-07-11 11:08:51 +02:00
parent 6168683cfe
commit 34e248a247

View File

@ -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);