mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
Remove commented out code
This commit is contained in:
@ -33,7 +33,6 @@ export class DeviceService {
|
|||||||
) {
|
) {
|
||||||
const accessKey = this.configService.get<string>('auth-config.ACCESS_KEY');
|
const accessKey = this.configService.get<string>('auth-config.ACCESS_KEY');
|
||||||
const secretKey = this.configService.get<string>('auth-config.SECRET_KEY');
|
const secretKey = this.configService.get<string>('auth-config.SECRET_KEY');
|
||||||
// const clientId = this.configService.get<string>('auth-config.CLIENT_ID');
|
|
||||||
this.tuya = new TuyaContext({
|
this.tuya = new TuyaContext({
|
||||||
baseUrl: 'https://openapi.tuyaeu.com',
|
baseUrl: 'https://openapi.tuyaeu.com',
|
||||||
accessKey,
|
accessKey,
|
||||||
@ -259,7 +258,6 @@ export class DeviceService {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
path,
|
path,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Convert keys to camel case
|
// Convert keys to camel case
|
||||||
const camelCaseResponse = convertKeysToCamelCase(response);
|
const camelCaseResponse = convertKeysToCamelCase(response);
|
||||||
const productType: string = await this.getProductTypeByProductId(
|
const productType: string = await this.getProductTypeByProductId(
|
||||||
|
Reference in New Issue
Block a user