mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
Fredy 2.0.0 introduces the concept of search jobs. You can now configure multiple of these jobs running in the same instance of Fredy. Also a new API has been created 🎉
16 lines
557 B
JavaScript
Executable File
16 lines
557 B
JavaScript
Executable File
/**
|
|
* simply prints out the found data to the console
|
|
* @param serviceName e.g immoscout
|
|
* @param newListings an array with newly found listings
|
|
* @param notificationConfig config of this notification adapter
|
|
*/
|
|
exports.send = (serviceName, newListings, notificationConfig) => {
|
|
const { enabled } = notificationConfig.console;
|
|
if (!enabled) {
|
|
return [Promise.resolve()];
|
|
}
|
|
/* eslint-disable no-console */
|
|
return [Promise.resolve(console.info(`Found entry from service ${serviceName}:`, newListings))];
|
|
/* eslint-enable no-console */
|
|
};
|