hotfix for InMemoryPostsAPI
This commit is contained in:
parent
4760617808
commit
033acc818d
@ -25,7 +25,7 @@ class InMemoryPostsAPI(
|
||||
post.content.any { it.id == id }
|
||||
}
|
||||
override suspend fun getPostsByDates(from: DateTime?, to: DateTime?): List<RegisteredPost> = posts.values.filter {
|
||||
from ?.let { _ -> it.creationDate > from } ?: true && to ?.let { _ -> it.creationDate < to } ?: true
|
||||
from ?.let { _ -> it.creationDate >= from } ?: true && to ?.let { _ -> it.creationDate <= to } ?: true
|
||||
}
|
||||
override suspend fun getPostsByPagination(
|
||||
pagination: Pagination
|
||||
@ -39,6 +39,4 @@ class InMemoryPostsAPI(
|
||||
it
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user