From be5e9b17829a67aab1e0a80f7cbde9b40701037a Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 20 Apr 2024 10:33:37 +0300 Subject: [PATCH] chore(api): temporarily disable device and apiKey deletion --- api/src/auth/auth.service.ts | 2 +- api/src/gateway/gateway.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/auth/auth.service.ts b/api/src/auth/auth.service.ts index ff27127..8e2f8f8 100644 --- a/api/src/auth/auth.service.ts +++ b/api/src/auth/auth.service.ts @@ -196,7 +196,7 @@ export class AuthService { ) } - await this.apiKeyModel.deleteOne({ _id: apiKeyId }) + // await this.apiKeyModel.deleteOne({ _id: apiKeyId }) } async trackAccessLog({ request }) { diff --git a/api/src/gateway/gateway.service.ts b/api/src/gateway/gateway.service.ts index 4574569..4ec3a86 100644 --- a/api/src/gateway/gateway.service.ts +++ b/api/src/gateway/gateway.service.ts @@ -80,7 +80,8 @@ export class GatewayService { ) } - return await this.deviceModel.findByIdAndDelete(deviceId) + return {} + // return await this.deviceModel.findByIdAndDelete(deviceId) } async sendSMS(deviceId: string, smsData: SendSMSInputDTO): Promise {