This commit is contained in:
2023-01-18 23:39:56 +06:00
parent 2e7a1b83c5
commit dc5833c407
3 changed files with 8 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class CachedPostsRepo(
return null
}
override suspend fun getPostCreationTime(postId: PostId): DateTime? = kvCache.get(postId) ?.created
override suspend fun getPostCreationTime(postId: PostId): DateTime? = getById(postId) ?.created
override suspend fun getFirstMessageInfo(postId: PostId): PostContentInfo? = kvCache.get(postId) ?.content ?.firstOrNull()
override suspend fun getFirstMessageInfo(postId: PostId): PostContentInfo? = getById(postId) ?.content ?.firstOrNull()
}