diff --git a/src/controllers/DevelopmentRequestController.ts b/src/controllers/DevelopmentRequestController.ts index f629e1d5..138b9a26 100644 --- a/src/controllers/DevelopmentRequestController.ts +++ b/src/controllers/DevelopmentRequestController.ts @@ -321,6 +321,7 @@ export class DevelopmentRequestController extends Controller { } const orgRoot = await this.orgRootRepo.findOne({ select: { + id: true, isDeputy: true }, where: { diff --git a/src/controllers/ProfileEditController.ts b/src/controllers/ProfileEditController.ts index 17b952d8..0b32bd68 100644 --- a/src/controllers/ProfileEditController.ts +++ b/src/controllers/ProfileEditController.ts @@ -335,6 +335,7 @@ export class ProfileEditController extends Controller { } const orgRoot = await this.orgRootRepo.findOne({ select: { + id: true, isDeputy: true }, where: { diff --git a/src/controllers/ProfileEditEmployeeController.ts b/src/controllers/ProfileEditEmployeeController.ts index 288dc724..46468d57 100644 --- a/src/controllers/ProfileEditEmployeeController.ts +++ b/src/controllers/ProfileEditEmployeeController.ts @@ -336,6 +336,7 @@ export class ProfileEditEmployeeController extends Controller { } const orgRoot = await this.orgRootRepo.findOne({ select: { + id: true, isDeputy: true }, where: {