payment
This commit is contained in:
@@ -293,9 +293,13 @@ export class PaymentsService {
|
||||
// return `This action updates a #${_id} payment`;
|
||||
// }
|
||||
|
||||
// findAll() {
|
||||
// return this.em.find(Payment, {});
|
||||
// }
|
||||
findAllByRestaurantId(restId: string, userId: string) {
|
||||
return this.em.find(
|
||||
Payment,
|
||||
{ order: { restaurant: { id: restId }, user: { id: userId } } },
|
||||
{ populate: ['order', 'order.paymentMethod'] },
|
||||
);
|
||||
}
|
||||
|
||||
// remove(id: number) {
|
||||
// return `This action removes a #${id} payment`;
|
||||
|
||||
Reference in New Issue
Block a user