add retry count

This commit is contained in:
arc-alex
2023-12-05 21:28:37 +01:00
parent 0523a68ef4
commit d0191ebc26
5 changed files with 21 additions and 5 deletions
+3
View File
@@ -280,8 +280,11 @@ export const parseHttp = (data: { http?: Partial<HttpSettings> }): HttpSettings
? loadedConfig.subscriptions
: dbModel.http.subscriptions;
const retryCount = Math.max(0, loadedConfig.retryCount ?? dbModel.http.retryCount);
return {
enabledOut: loadedConfig.enabledOut ?? dbModel.http.enabledOut,
retryCount: retryCount,
subscriptions: validatedSubscriptions,
};
}