summaryrefslogtreecommitdiff
path: root/source/features/release-download-count.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/release-download-count.tsx')
-rw-r--r--source/features/release-download-count.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/features/release-download-count.tsx b/source/features/release-download-count.tsx
index d65479bf..7108069c 100644
--- a/source/features/release-download-count.tsx
+++ b/source/features/release-download-count.tsx
@@ -6,7 +6,6 @@ import * as pageDetect from 'github-url-detection';
import features from '.';
import * as api from '../github-helpers/api';
-import {getRepoGQL} from '../github-helpers';
interface Asset {
name: string;
@@ -15,7 +14,7 @@ interface Asset {
type Tag = Record<string, Asset[]>;
async function getAssetsForTag(tags: string[]): Promise<Tag> {
const {repository} = await api.v4(`
- repository(${getRepoGQL()}) {
+ repository() {
${tags.map(tag => `
${api.escapeKey(tag)}: release(tagName:"${tag}") {
releaseAssets(first: 100) {