update user entity

This commit is contained in:
2025-12-04 00:11:38 +03:30
parent 1ba66c7946
commit 678f539727
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -106,7 +106,13 @@ export class UserService {
const offset = (page - 1) * limit;
// 2. Build the 'where' filter query
const where: FilterQuery<User> = {};
const where: FilterQuery<User> = {
orders: {
restaurant: {
id: restId,
},
},
};
// 4. Add 'search' logic (case-insensitive)
if (search) {