Skip to content

Commit 932c233

Browse files
committed
fix templates
1 parent 51afc2a commit 932c233

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/backend/server/routes/stats.get.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,11 @@ export default eventHandler(async (event) => {
4444
ref: sha256(ref),
4545
};
4646
} else if (key.startsWith(templatesPrefix)) {
47-
const trimmedKey = key.slice(useTemplatesBucket.base.length);
48-
const [org, repo, ...templateNameParts] = trimmedKey.split(":");
49-
const template = templateNameParts.join(":");
47+
const trimmedKey = key.slice(templatesPrefix.length);
48+
const template = trimmedKey;
5049

5150
result = {
5251
type: "template",
53-
org: sha256(org),
54-
repo: sha256(repo),
5552
template: sha256(template),
5653
};
5754
}

0 commit comments

Comments
 (0)