diff --git a/lib/notification/adapter/apprise.js b/lib/notification/adapter/apprise.js index 2d520a1..78e8b74 100644 --- a/lib/notification/adapter/apprise.js +++ b/lib/notification/adapter/apprise.js @@ -8,7 +8,7 @@ export const send = ({ serviceName, newListings, notificationConfig, jobKey }) = const jobName = job == null ? jobKey : job.name; const promises = newListings.map((newListing) => { const title = `${jobName} at ${serviceName}: ${newListing.title}`; - const message = `Address: ${newListing.address}\nSize: ${newListing.size}\nPrice: ${newListing.price}\nink: ${newListing.link}`; + const message = `Address: ${newListing.address}\nSize: ${newListing.size}\nPrice: ${newListing.price}\nLink: ${newListing.link}`; return fetch(server, { method: 'POST', headers: { 'Content-Type': 'application/json' }, diff --git a/lib/notification/adapter/mattermost.js b/lib/notification/adapter/mattermost.js index 5e0b87b..8eb7fbe 100644 --- a/lib/notification/adapter/mattermost.js +++ b/lib/notification/adapter/mattermost.js @@ -13,10 +13,10 @@ export const send = ({ serviceName, newListings, notificationConfig, jobKey }) = return fetch(webhook, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: { + body: JSON.stringify({ channel: channel, text: message, - }, + }), }); }; export const config = {