|
|
@ -107,6 +107,7 @@ export default ( |
|
|
|
baseURL = `http://localhost:${process.env.PORT || 8080}`; |
|
|
|
baseURL = `http://localhost:${process.env.PORT || 8080}`; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
NocoJobs.jobsMgr.add<AirtableSyncConfig>(AIRTABLE_IMPORT_JOB, { |
|
|
|
NocoJobs.jobsMgr.add<AirtableSyncConfig>(AIRTABLE_IMPORT_JOB, { |
|
|
|
id: req.params.syncId, |
|
|
|
id: req.params.syncId, |
|
|
|
...(syncSource?.details || {}), |
|
|
|
...(syncSource?.details || {}), |
|
|
@ -115,6 +116,8 @@ export default ( |
|
|
|
authToken: token, |
|
|
|
authToken: token, |
|
|
|
baseURL, |
|
|
|
baseURL, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
|
|
|
|
jobs[req.params.syncId] = { |
|
|
|
jobs[req.params.syncId] = { |
|
|
|
last_message: { |
|
|
|
last_message: { |
|
|
|
msg: 'Sync started', |
|
|
|
msg: 'Sync started', |
|
|
|