diff --git a/apps/server/src/models/post/post.service.ts b/apps/server/src/models/post/post.service.ts index 81bd8e0..c8cd7ba 100755 --- a/apps/server/src/models/post/post.service.ts +++ b/apps/server/src/models/post/post.service.ts @@ -187,6 +187,19 @@ export class PostService extends BaseTreeService { ); return transDto; } + // async findMany(args: Prisma.PostFindManyArgs, staff?: UserProfile) { + // if (!args.where) args.where = {}; + // args.where.OR = await this.preFilter(args.where.OR, staff); + // return this.wrapResult(super.findMany(args), async (result) => { + // await Promise.all( + // result.map(async (item) => { + // await setPostRelation({ data: item, staff }); + // await this.setPerms(item, staff); + // }), + // ); + // return { ...result }; + // }); + // } async findManyWithCursor(args: Prisma.PostFindManyArgs, staff?: UserProfile) { if (!args.where) args.where = {}; args.where.OR = await this.preFilter(args.where.OR, staff);