Skip to content

Commit

Permalink
Update plugins/catalog-backend/src/service/createRouter.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kashish Mittal <[email protected]>
Signed-off-by: Paul Schultz <[email protected]>
  • Loading branch information
schultzp2020 and 04kash committed Jan 20, 2025
1 parent 6c813e1 commit 1a0556f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/catalog-backend/src/service/createRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ export async function createRouter(
credentials: await httpAuth.credentials(req),
});

writeSingleEntityResponse(res, entities, `No entity with uid ${uid}`);

await auditorEvent?.success({
meta: {
entities: entities,
},
});

writeSingleEntityResponse(res, entities, `No entity with uid ${uid}`);
} catch (err) {
await auditorEvent?.fail({
error: err,
Expand Down

0 comments on commit 1a0556f

Please sign in to comment.