fixed service crash
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m2s

This commit is contained in:
Warunee Tamkoo 2026-05-20 20:40:09 +07:00
parent bca04f2881
commit e374f2e339
4 changed files with 25 additions and 37 deletions

View file

@ -214,6 +214,7 @@ export class OrganizationController extends Controller {
await sendToQueueOrgDraft(msg);
return new HttpSuccess("Draft is being created... Processing in the background.");
} catch (error: any) {
console.error("Error creating draft organization:", error);
throw error;
}
}
@ -2529,6 +2530,7 @@ export class OrganizationController extends Controller {
await sendToQueueOrg(msg);
return new HttpSuccess();
} catch (error: any) {
console.error("Error publishing draft organization:", error);
throw error;
}
}