live-fns: (github) add token required hint

pull/115/head
Amio 2018-08-15 12:39:23 +08:00
rodzic f67013244d
commit f27a280e70
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -199,6 +199,10 @@ const makeRepoQuery = (topic, user, repo, ...args) => {
}
const repoStats = async (topic, user, repo, ...args) => {
if (!token) {
return { status: 'token required' }
}
const repoQuery = makeRepoQuery(topic, user, repo, ...args)
const { data } = await queryGithub(repoQuery)