fix bug in favorite list
This commit is contained in:
@@ -260,8 +260,8 @@ export class FoodService {
|
||||
}
|
||||
|
||||
|
||||
async getMyFavorites(userId: string) {
|
||||
return this.em.find(Favorite, { user: userId }, { populate: ['food'] });
|
||||
async getMyFavorites(userId: string,restId: string) {
|
||||
return this.em.find(Favorite, { user: userId, food: { restaurant: { id: restId } } }, { populate: ['food'] });
|
||||
}
|
||||
/**
|
||||
* Invalidate cache for restaurant foods
|
||||
|
||||
Reference in New Issue
Block a user