Skip to content

Commit

Permalink
fix: filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sugar-cat7 committed Mar 4, 2025
1 parent 80292b7 commit 7f5ba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/server/infra/repository/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class VideoRepository implements IVideoRepository {
if (query.memberType) {
filters.push(eq(creatorTable.memberType, query.memberType));
}
if (query.channelIds) {
if (query.channelIds && query.channelIds.length > 0) {
filters.push(inArray(videoTable.channelId, query.channelIds));
}

Expand Down

0 comments on commit 7f5ba02

Please sign in to comment.