shop
This commit is contained in:
@@ -163,19 +163,6 @@ export class ShopService {
|
||||
return shop;
|
||||
}
|
||||
|
||||
async remove(id: string) {
|
||||
// Soft delete the shop by setting isActive to false
|
||||
const shop = await this.shopRepository.findOne({ id });
|
||||
|
||||
if (!shop) {
|
||||
throw new NotFoundException(RestMessage.NOT_FOUND);
|
||||
}
|
||||
|
||||
shop.isActive = false;
|
||||
await this.em.persistAndFlush(shop);
|
||||
|
||||
return shop;
|
||||
}
|
||||
|
||||
async updateSubscription(subscriptionId: string, dto: UpdateSubscriptionDto): Promise<Shop> {
|
||||
const shop = await this.shopRepository.findOne({ subscriptionId });
|
||||
|
||||
Reference in New Issue
Block a user