mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 07:07:54 +00:00
Merge pull request #348 from SyncrowIOT/fix-add-device-issue
Fix-add-device-issue
This commit is contained in:
@@ -111,7 +111,7 @@ import { winstonLoggerOptions } from '../logger/services/winston.logger';
|
|||||||
charset: 'utf8mb4',
|
charset: 'utf8mb4',
|
||||||
max: 20, // set pool max size
|
max: 20, // set pool max size
|
||||||
idleTimeoutMillis: 5000, // close idle clients after 5 second
|
idleTimeoutMillis: 5000, // close idle clients after 5 second
|
||||||
connectionTimeoutMillis: 11_000, // return an error after 11 second if connection could not be established
|
connectionTimeoutMillis: 12_000, // return an error after 11 second if connection could not be established
|
||||||
maxUses: 7500, // close (and replace) a connection after it has been used 7500 times (see below for discussion)
|
maxUses: 7500, // close (and replace) a connection after it has been used 7500 times (see below for discussion)
|
||||||
},
|
},
|
||||||
continuationLocalStorage: true,
|
continuationLocalStorage: true,
|
||||||
|
|||||||
@@ -685,7 +685,7 @@ export class DeviceService {
|
|||||||
return {
|
return {
|
||||||
...rest,
|
...rest,
|
||||||
productUuid: product.uuid,
|
productUuid: product.uuid,
|
||||||
name: deviceDetails.name,
|
name: deviceDetails?.name,
|
||||||
productName: product.name,
|
productName: product.name,
|
||||||
} as GetDeviceDetailsInterface;
|
} as GetDeviceDetailsInterface;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user