list of favorites

This commit is contained in:
2025-12-22 14:15:48 +03:30
parent 2030132ea5
commit 2a6d53b04d
2 changed files with 12 additions and 0 deletions
@@ -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
*/