diff --git a/src/modules/posts/posts.service.ts b/src/modules/posts/posts.service.ts index f7fb5a7..aa83b24 100644 --- a/src/modules/posts/posts.service.ts +++ b/src/modules/posts/posts.service.ts @@ -171,7 +171,7 @@ export class PostsService { ) { await this.folderRepository.findOneOrFail({ userId: userId, - id: dto.folderId, + _id: dto.folderId, }); // Find if post exist