Revert token change

This commit is contained in:
Zed 2020-06-16 00:48:44 +02:00
parent 6167e7dc49
commit 7e40af5611
1 changed files with 1 additions and 1 deletions

View File

@ -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: