mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix fetch
This commit is contained in:
parent
52443e71f6
commit
ccfb861489
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ class Github extends Command {
|
|||
|
||||
async run(message, args, data) {
|
||||
const res = await fetch("https://api.github.com/repos/JonnyBro/JaBa-new", {
|
||||
headers: `Authorization: ${data.config.githubToken}`
|
||||
headers: {
|
||||
Authorization: data.config.githubToken
|
||||
}
|
||||
});
|
||||
const json = await res.json();
|
||||
|
||||
|
|
Loading…
Reference in a new issue