From 22b51b414b62620633de8ba456eaebdd2de54934 Mon Sep 17 00:00:00 2001 From: Zed Date: Fri, 20 Jan 2023 04:55:56 +0100 Subject: [PATCH] Fix typo to actually cache pinned tweets --- src/redis_cache.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis_cache.nim b/src/redis_cache.nim index b91d153..742b7ae 100644 --- a/src/redis_cache.nim +++ b/src/redis_cache.nim @@ -154,7 +154,7 @@ proc getCachedTweet*(id: int64): Future[Tweet] {.async.} = tweet.deserialize(Tweet) else: result = await getStatus($id) - if result.isNil: + if not result.isNil: await cache(result) proc getCachedPhotoRail*(name: string): Future[PhotoRail] {.async.} =