This commit is contained in:
Omer Sabic 2024-06-13 22:25:19 +02:00
parent b96c2d6546
commit b66e27d49b

View File

@ -47,7 +47,7 @@ export const webhookRoutes = (fastify, _, done) => {
if (contentType === 'application/atom+xml') { if (contentType === 'application/atom+xml') {
try { try {
// Parse the XML payload // Parse the XML payload
console.log(body) console.log(JSON.stringify(body))
const feed = body["feed"]; const feed = body["feed"];
// Example processing: log the video IDs of new videos // Example processing: log the video IDs of new videos
const entry = feed.entry[0]; const entry = feed.entry[0];