mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 19:57:55 +00:00
Add TUYA_EU_URL to Tuya configuration
This commit is contained in:
@@ -37,8 +37,10 @@ export class UnitService {
|
||||
) {
|
||||
const accessKey = this.configService.get<string>('auth-config.ACCESS_KEY');
|
||||
const secretKey = this.configService.get<string>('auth-config.SECRET_KEY');
|
||||
const tuyaEuUrl = this.configService.get<string>('tuya-config.TUYA_EU_URL');
|
||||
|
||||
this.tuya = new TuyaContext({
|
||||
baseUrl: 'https://openapi.tuyaeu.com',
|
||||
baseUrl: tuyaEuUrl,
|
||||
accessKey,
|
||||
secretKey,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user