Преглед изворни кода

Fix typo to actually cache pinned tweets

Zed пре 3 година
родитељ
комит
22b51b414b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/redis_cache.nim

+ 1 - 1
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.} =