diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 5f608dce..ca848909 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -931,7 +931,7 @@ export class ProfileController extends Controller { .leftJoinAndSelect("current_holder.posType", "posType") .where({ orgRevisionId: findRevision?.id, - rootId: body.rootId == null ? "1=1" : body.rootId, + orgRootId: body.rootId == null ? "1=1" : body.rootId, current_holderId: Not(IsNull()), }) .andWhere(