We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51afc2a commit 932c233Copy full SHA for 932c233
packages/backend/server/routes/stats.get.ts
@@ -44,14 +44,11 @@ export default eventHandler(async (event) => {
44
ref: sha256(ref),
45
};
46
} 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(":");
+ const trimmedKey = key.slice(templatesPrefix.length);
+ const template = trimmedKey;
50
51
result = {
52
type: "template",
53
- org: sha256(org),
54
- repo: sha256(repo),
55
template: sha256(template),
56
57
}
0 commit comments