feat: delete post
This commit is contained in:
parent
a801b59610
commit
ba84a67095
|
|
@ -505,7 +505,10 @@ export class PostsService {
|
|||
const post = await this._postRepository.deletePost(orgId, group);
|
||||
if (post?.id) {
|
||||
await this._workerServiceProducer.delete('post', post.id);
|
||||
return {id: post.id};
|
||||
}
|
||||
|
||||
return {error: true};
|
||||
}
|
||||
|
||||
async countPostsFromDay(orgId: string, date: Date) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue