[4413] added opc mapping minor fix
This commit is contained in:
parent
a854c5a966
commit
067504d2db
@ -35,9 +35,10 @@ import {
|
|||||||
export class OpcVersionMappingUtil {
|
export class OpcVersionMappingUtil {
|
||||||
|
|
||||||
static mapServerToUpgradedVersion(server: LegacyServerConfig): ServerConfig {
|
static mapServerToUpgradedVersion(server: LegacyServerConfig): ServerConfig {
|
||||||
const { mapping, disableSubscriptions, ...restServer } = server;
|
const { mapping, disableSubscriptions, pollPeriodInMillis, ...restServer } = server;
|
||||||
return {
|
return {
|
||||||
...restServer,
|
...restServer,
|
||||||
|
pollPeriodInMillis: pollPeriodInMillis ?? 5000,
|
||||||
enableSubscriptions: !disableSubscriptions,
|
enableSubscriptions: !disableSubscriptions,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user