Merge pull request #348 from SyncrowIOT/fix-add-device-issue

Fix-add-device-issue
This commit is contained in:
faljawhary
2025-04-24 11:10:16 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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) {