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