initialize project structure with core modules and configuration
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const ingestionState = new Map();
|
||||
|
||||
function markSourceRun(source) {
|
||||
ingestionState.set(source, new Date().toISOString());
|
||||
}
|
||||
|
||||
function getLastIngestionBySource() {
|
||||
return Object.fromEntries(ingestionState.entries());
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
markSourceRun,
|
||||
getLastIngestionBySource,
|
||||
};
|
||||
Reference in New Issue
Block a user