update name of publishing checking fun
This commit is contained in:
parent
bc974582d7
commit
d077b539dd
File diff suppressed because one or more lines are too long
@ -29,10 +29,10 @@ interface PublishedPostsReadRepo : ReadCRUDRepo<PublishedPost, PublishedPostId>
|
||||
reversed: Boolean = false
|
||||
): PaginationResult<PublishedPostId>
|
||||
}
|
||||
suspend inline fun PostId.isPublished(lookIn: PublishedPostsReadRepo): Boolean {
|
||||
suspend inline fun PostId.publishedAtLeastOnce(lookIn: PublishedPostsReadRepo): Boolean {
|
||||
return lookIn.getPostPublishing(this, FirstPagePagination(1)).results.isNotEmpty()
|
||||
}
|
||||
suspend inline fun RegisteredPost.isPublished(lookIn: PublishedPostsReadRepo): Boolean {
|
||||
suspend inline fun RegisteredPost.publishedAtLeastOnce(lookIn: PublishedPostsReadRepo): Boolean {
|
||||
return lookIn.getPostPublishing(id, FirstPagePagination(1)).results.isNotEmpty()
|
||||
}
|
||||
interface PublishedPostsWriteRepo : WriteCRUDRepo<PublishedPost, PublishedPostId, RegisteredPost>
|
||||
|
Loading…
Reference in New Issue
Block a user