Browse Source

chore(api): temporarily disable device and apiKey deletion

pull/8/head
isra el 2 years ago
parent
commit
be5e9b1782
  1. 2
      api/src/auth/auth.service.ts
  2. 3
      api/src/gateway/gateway.service.ts

2
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 }) { async trackAccessLog({ request }) {

3
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<any> { async sendSMS(deviceId: string, smsData: SendSMSInputDTO): Promise<any> {

Loading…
Cancel
Save