Skip to content

Commit b14d666

Browse files
committed
[+] Fetch: language support
1 parent a15d827 commit b14d666

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/utils/fetch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ const query = require('./query');
33

44
module.exports = (
55
token,
6-
cursor = null,
6+
cursor,
7+
language,
78
urlAPI = 'https://api.github.com/graphql'
89
) => {
910
return axios
1011
.post(
1112
urlAPI,
1213
{
13-
query: query(cursor),
14+
query: query(cursor, language),
1415
},
1516
{
1617
headers: {

0 commit comments

Comments
 (0)