logging update
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user