This commit is contained in:
Zed
2021-12-30 01:48:48 +01:00
parent b0a5e38b3f
commit 80f7bc0a02
2 changed files with 3 additions and 3 deletions

View File

@@ -111,10 +111,10 @@ proc getCachedProfile*(username: string; fetch=true): Future[Profile] {.async.}
elif fetch:
result = await getProfile(username)
proc getCachedProfileScreenName*(userId: string): Future[string] {.async.} =
proc getCachedProfileUsername*(userId: string): Future[string] {.async.} =
let username = await get("i:" & userId)
if username != redisNil:
result = username
result = username
else:
let profile = await getProfileById(userId)
result = profile.username