Skip to content

Commit

Permalink
disable vateud core routes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhollmann committed May 21, 2024
1 parent 8c0ef36 commit 2e688ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/controllers/solo/SoloAdminController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function createSolo(request: Request, response: Response, next: NextFuncti
},
});

if (endorsementGroup) await vateudCreateSolo(solo, endorsementGroup);
//if (endorsementGroup) await vateudCreateSolo(solo, endorsementGroup);

const returnUser = await User.findOne({
where: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ async function addEndorsement(request: Request, response: Response, next: NextFu
created_by: requestingUser.id,
});


/*
if (!(await createEndorsement(userEndorsement, endorsementGroup))) {
await userEndorsement.destroy();
throw new Error();
}
*/

response.status(HttpStatusCode.Created).send(endorsementGroup);
} catch (e) {
Expand Down Expand Up @@ -90,7 +93,7 @@ async function deleteEndorsement(request: Request, response: Response, next: Nex

const success = await removeEndorsement(userEndorsement, endorsementGroup);

if (success) {
if (!success) {
throw new Error("Could not delete endorsement in VATEUD CORE.");
}

Expand Down

0 comments on commit 2e688ed

Please sign in to comment.