Skip to content

Commit

Permalink
fix: we need to ensure status querying
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelchris committed Dec 23, 2024
1 parent 38705c0 commit 3e541d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schema/contentPreference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
.andWhere(`${builder.alias}."feedId" = :feedId`, {
feedId,
})
.andWhere(`${builder.alias}."status" != :status`, {
status: ContentPreferenceStatus.Blocked,
})
.limit(page.limit)
.offset(page.offset)
.addOrderBy(`${builder.alias}."createdAt"`, 'DESC');
Expand Down

0 comments on commit 3e541d9

Please sign in to comment.