added refresh interval
MODIFY
src/server/rest/v1/service/security/SettingSecurity.ts
src/server/rest/v1/service/security/SettingSecurity.ts
@@ -237,6 +237,7 @@ export default class SettingSecurity {
case AssetConnectionType.WIT:
sanitizedConnection.witConnection = {
authenticationUrl: sanitize(connection.witConnection.authenticationUrl),
+ refreshInterval: sanitize(connection.witConnection.refreshInterval),
clientId: sanitize(connection.witConnection.clientId),
clientSecret: sanitize(connection.witConnection.clientSecret),
user: sanitize(connection.witConnection.user),

MODIFY
src/types/Setting.ts
src/types/Setting.ts
@@ -310,6 +310,7 @@ export interface AssetWitConnectionType extends AssetUserPasswordConnectionType
clientId: string;
clientSecret: string;
authenticationUrl: string;
+ refreshInterval: number;
}
export enum CarConnectorSettingsType {

added refresh interval