logging update
Some checks failed
Code Analysis and Production Deploy / deploy-production (push) Has been cancelled
Code Analysis and Production Deploy / deploy-test (push) Has been cancelled
Code Analysis and Production Deploy / analyze (push) Has been cancelled

This commit is contained in:
Torsten Schulz (local)
2026-06-10 16:03:37 +02:00
parent c956869e8a
commit 8393f154e5
2 changed files with 16 additions and 4 deletions

View File

@@ -53,9 +53,13 @@ export default defineEventHandler(async (event) => {
}
await saveNews(newsEntry)
if (!id && !newsEntry.isHidden) {
sendNewNewsPush(newsEntry).catch(error => {
console.error('News-Push konnte nicht gesendet werden:', error)
})
sendNewNewsPush(newsEntry)
.then(result => {
console.info('News-Push Ergebnis:', { newsId: newsEntry.id, ...result })
})
.catch(error => {
console.error('News-Push konnte nicht gesendet werden:', error)
})
}
return {