Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Feb 26, 2024
1 parent a5953ee commit be3a696
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,13 @@ router.get("/v2/metrics/dependencies/:source*", async (ctx) => {
// ## Registry related APIs ##
router.get("/legacy_modules/:id", async (ctx) => {
const datastore = await getDatastore();
const res = await datastore.lookup(datastore.key([kinds.LEGACY_MODULES, ctx.params.id]));
const res = await datastore.lookup(
datastore.key([kinds.LEGACY_MODULES, ctx.params.id]),
);
if (res.found && res.found.length === 1) {
return entityToObject<ApiModuleData>(res.found![0].entity);
}
})
});

router.get("/legacy_modules_count", async () => {
datastore = datastore ?? await getDatastore();
Expand Down

0 comments on commit be3a696

Please sign in to comment.