refactor coupon module
This commit is contained in:
@@ -22,7 +22,7 @@ export class ContactService {
|
||||
|
||||
let shop: Shop | null = null;
|
||||
|
||||
if ((restId || slug) && dto.scope === ContactScope.RESTAURANT) {
|
||||
if ((restId || slug) && dto.scope === ContactScope.SHOP) {
|
||||
shop = await this.em.findOne(Shop, {
|
||||
...(restId ? { id: restId } : {})
|
||||
, ...(slug ? { slug: slug } : {})
|
||||
@@ -49,7 +49,7 @@ export class ContactService {
|
||||
orderBy: dto.orderBy,
|
||||
order: dto.order,
|
||||
status: dto.status,
|
||||
scope: ContactScope.RESTAURANT,
|
||||
scope: ContactScope.SHOP,
|
||||
restaurantId
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user