🐛 Fix ORM query builder with $in option for postgres (#771)
This commit is contained in:
@@ -169,7 +169,7 @@ export class UserServiceImpl {
|
||||
pagination,
|
||||
};
|
||||
|
||||
if (options?.userIds) {
|
||||
if (Array.isArray(options?.userIds) && options.userIds.length > 0) {
|
||||
findOptions.$in = [["id", options.userIds]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user