Skip to content

Commit

Permalink
Add leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 18, 2023
1 parent 03631e6 commit 6592ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/entity-invalidator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ async function run() {
}

function getPaths(entity: KeyToAsset): string[] {
const v1 = `v1/${entity.address}`;
const v1 = `/v1/${entity.address}`;
if ((entity.entityKeyStr?.length || 0) >= 200) {
return [v1];
}

return [entity.entityKeyStr!, v1];
return [`/${entity.entityKeyStr!}`, v1];
}

run().catch((e) => {
Expand Down

0 comments on commit 6592ceb

Please sign in to comment.