แก้ tree org

This commit is contained in:
Kittapath 2024-06-20 16:10:19 +07:00
parent 7f21756928
commit 5ca15d5433
3 changed files with 55 additions and 3 deletions

View file

@ -255,7 +255,7 @@ export class OrgRootController extends Controller {
this.orgRootRepository.merge(orgRoot, requestBody);
await this.orgRootRepository.save(orgRoot);
if (orgRoot.orgRootRankSub == "DISTRICT") {
if (orgRoot.orgRootRankSub == "DISTRICT" || orgRoot.orgRootRankSub == "OFFICE") {
const up_Child1 = await this.child1Repository.find({
where: {
orgRevisionId: orgRoot.orgRevisionId,