This commit is contained in:
2026-02-10 11:18:50 +03:30
parent 71670ffebf
commit 280815dce3
5 changed files with 1 additions and 30 deletions
@@ -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 });