feat: Add custom user agent with base url to webhook (#799)

This commit is contained in:
HannesOberreiter
2024-06-18 15:36:51 +02:00
committed by GitHub
parent d54e3c1367
commit 2495891fad

View File

@@ -89,6 +89,7 @@ const jsonifyData = (data) => {
async function sendWebhook(webhook, event, data, user) {
const headers = {
'Content-Type': 'application/json',
'User-Agent': `planka (+${sails.config.custom.baseUrl})`,
};
if (webhook.accessToken) {