feat(content): add announcements and public news flows
This commit is contained in:
@@ -67,6 +67,12 @@ export async function getPostById(id: string) {
|
||||
return postCrudService.getById(id)
|
||||
}
|
||||
|
||||
export async function getPostBySlug(slug: string) {
|
||||
return db.post.findUnique({
|
||||
where: { slug },
|
||||
})
|
||||
}
|
||||
|
||||
export async function createPost(input: unknown, context?: CrudMutationContext) {
|
||||
return postCrudService.create(input, context)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user