Revert token change
This commit is contained in:
parent
6167e7dc49
commit
7e40af5611
|
@ -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 New Issue