[PM-7004] Remove try/catch from submit method in verify-recover-delete-org.component.ts

This commit is contained in:
Rui Tome 2024-04-22 18:41:51 +01:00
parent 0b191a27dd
commit e59d4df5ee
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066
1 changed files with 8 additions and 12 deletions

View File

@ -44,17 +44,13 @@ export class VerifyRecoverDeleteOrgComponent implements OnInit {
}
submit = async () => {
try {
const request = new OrganizationVerifyDeleteRecoverRequest(this.token);
await this.apiService.deleteUsingToken(this.orgId, request);
this.platformUtilsService.showToast(
"success",
this.i18nService.t("organizationDeleted"),
this.i18nService.t("organizationDeletedDesc"),
);
await this.router.navigate(["/"]);
} catch (e) {
this.logService.error(e);
}
const request = new OrganizationVerifyDeleteRecoverRequest(this.token);
await this.apiService.deleteUsingToken(this.orgId, request);
this.platformUtilsService.showToast(
"success",
this.i18nService.t("organizationDeleted"),
this.i18nService.t("organizationDeletedDesc"),
);
await this.router.navigate(["/"]);
};
}