mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-03-10 20:21:44 +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',
|
||||
max: 20, // set pool max size
|
||||
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)
|
||||
},
|
||||
continuationLocalStorage: true,
|
||||
|
||||
@ -685,7 +685,7 @@ export class DeviceService {
|
||||
return {
|
||||
...rest,
|
||||
productUuid: product.uuid,
|
||||
name: deviceDetails.name,
|
||||
name: deviceDetails?.name,
|
||||
productName: product.name,
|
||||
} as GetDeviceDetailsInterface;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user