fix: webhook handles test events and missing metadata gracefully

This commit is contained in:
2026-02-06 15:32:30 +01:00
parent a532fa120f
commit 52634f84bf
3 changed files with 28 additions and 12 deletions

View File

@@ -50,6 +50,12 @@ class PageMyListings extends HTMLElement {
}
const response = await directus.getListings({
fields: [
'id', 'status', 'title', 'slug', 'price', 'currency',
'condition', 'payment_status', 'date_created', 'user_created',
'images.directus_files_id.id',
'location.id', 'location.name'
],
filter: {
user_created: { _eq: user.id }
},