Skip to content

Commit caecc51

Browse files
committed
fix: scheduledRefreshTimer.match is not a function
Fixes #772
1 parent ae32519 commit caecc51

File tree

1 file changed

+2
-1
lines changed
  • packages/cubejs-server-core/core

1 file changed

+2
-1
lines changed

packages/cubejs-server-core/core/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ class CubejsServerCore {
227227
if (this.scheduledRefreshTimer) {
228228
setInterval(
229229
() => this.runScheduledRefresh(),
230-
typeof this.scheduledRefreshTimer === 'number' || this.scheduledRefreshTimer.match(/^\d+$/) ?
230+
typeof this.scheduledRefreshTimer === 'number' ||
231+
typeof this.scheduledRefreshTimer === 'string' && this.scheduledRefreshTimer.match(/^\d+$/) ?
231232
(this.scheduledRefreshTimer * 1000) :
232233
5000
233234
);

0 commit comments

Comments
 (0)