Revert token change
This commit is contained in:
parent
6167e7dc49
commit
7e40af5611
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ proc genHeaders*(token: Token = nil): HttpHeaders =
|
|||
|
||||
proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
|
||||
var
|
||||
token = if oldApi: nil else: await getToken()
|
||||
token = await getToken()
|
||||
client = newAsyncHttpClient(headers=genHeaders(token))
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue