feat: delete post

This commit is contained in:
Nevo David 2025-01-07 17:05:27 +07:00
parent a801b59610
commit ba84a67095
1 changed files with 3 additions and 0 deletions

View File

@ -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) {