diff --git a/src/services/rabbitmq.ts b/src/services/rabbitmq.ts index e8205187..8cc9548f 100644 --- a/src/services/rabbitmq.ts +++ b/src/services/rabbitmq.ts @@ -615,15 +615,15 @@ async function handler_org(msg: amqp.ConsumeMessage): Promise { await posMasterAssignRepository.save(newAssigns); } // Clone permissionProfiles - const perms = permissionMap.get(item.orgRoot.ancestorDNA); - const newRootId = newRootMap.get(item.orgRoot.ancestorDNA); - if (perms && perms.length > 0 && newRootId) { - const newPerms = perms.map(({ id, ...fields }) => ({ - ...fields, - orgRootId: newRootId, - })); - await permissionProfilesRepository.save(newPerms); - } + // const perms = permissionMap.get(item.ancestorDNA); + // const newRootId = newRootMap.get(item.orgRoot.ancestorDNA); + // if (perms && perms.length > 0 && newRootId) { + // const newPerms = perms.map(({ id, ...fields }) => ({ + // ...fields, + // orgRootId: newRootId, + // })); + // await permissionProfilesRepository.save(newPerms); + // } if (item.next_holderId != null) { const profile = await repoProfile.findOne({