Skip to content

Commit

Permalink
split out refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Apr 23, 2024
1 parent d03344e commit 30dfd2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/dicom-connect/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ function initialize() {
]
});

// set interval to check series status
var updateSeriesStatus = setInterval(async function() {
async function checkInterval() {
// get slides status
const query = {
'dicom-source-url': src.url,
Expand Down Expand Up @@ -273,7 +272,12 @@ function initialize() {
clearInterval(updateSeriesStatus);
}
console.log('running')
}, 60000);
}

// initialize
checkInterval()
// update every 30 seconds
var updateSeriesStatus = setInterval(checkInterval, 30000);
})
break;
case 'instances':
Expand Down

0 comments on commit 30dfd2a

Please sign in to comment.