You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
345 B
20 lines
345 B
import domainWatcher from './domain-watcher' |
|
import parser from './parser' |
|
|
|
|
|
const run = async()=>{ |
|
console.log('Start domain watcher') |
|
await domainWatcher(); |
|
console.log('Start parser') |
|
await parser(); |
|
} |
|
|
|
const second = 1000; |
|
const minute= 60 * second; |
|
const hour = 60 * minute; |
|
|
|
run(); |
|
|
|
setInterval(()=>{ |
|
run() |
|
},3 * hour) |