epha-robot
Version:
Fetching, cleaning, transforming of pharmaceutical data from public resources
24 lines (18 loc) • 609 B
JavaScript
var history = require("../lib/history/history");
var cfg = require("../jobs/cfg/swissmedic.cfg");
/**
* This job is strongly coupled with basic swissmedic job as it makes only sense to run it,
* after fresh data were fetched.
*
* @param {{debug: Function, error: Function, info: Function, time: Function, timeEnd: Function}} log - optional
* @returns {Promise}
*/
function swissmedicHistory(log) {
var jobName = "Swissmedic History";
function onChanged() {
// default behaviour will do
}
return history(jobName, cfg, onChanged, log);
}
module.exports = swissmedicHistory;
;