From 4c2b3c7f368afff70d136b630884b488bb77b696 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Sat, 23 Mar 2024 15:25:08 +0100 Subject: [PATCH] fix: missing binding and only include if true (non default value) --- .../com/egm/stellio/subscription/model/NotificationParams.kt | 1 + .../com/egm/stellio/subscription/service/SubscriptionService.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/subscription-service/src/main/kotlin/com/egm/stellio/subscription/model/NotificationParams.kt b/subscription-service/src/main/kotlin/com/egm/stellio/subscription/model/NotificationParams.kt index 7700622eb..2cb0852b9 100644 --- a/subscription-service/src/main/kotlin/com/egm/stellio/subscription/model/NotificationParams.kt +++ b/subscription-service/src/main/kotlin/com/egm/stellio/subscription/model/NotificationParams.kt @@ -16,6 +16,7 @@ data class NotificationParams( val lastNotification: ZonedDateTime? = null, val lastFailure: ZonedDateTime? = null, val lastSuccess: ZonedDateTime? = null, + @JsonInclude(value = JsonInclude.Include.NON_DEFAULT) val sysAttrs: Boolean = false ) { enum class FormatType(val format: String) { diff --git a/subscription-service/src/main/kotlin/com/egm/stellio/subscription/service/SubscriptionService.kt b/subscription-service/src/main/kotlin/com/egm/stellio/subscription/service/SubscriptionService.kt index 32ed66f5d..e64e12c9c 100644 --- a/subscription-service/src/main/kotlin/com/egm/stellio/subscription/service/SubscriptionService.kt +++ b/subscription-service/src/main/kotlin/com/egm/stellio/subscription/service/SubscriptionService.kt @@ -498,7 +498,7 @@ class SubscriptionService( notif_format, endpoint_uri, endpoint_accept, endpoint_receiver_info, endpoint_notifier_info, status, times_sent, is_active, last_notification, last_failure, last_success, entity_selector.id as entity_id, id_pattern, entity_selector.type_selection as type_selection, georel, geometry, coordinates, - pgis_geometry, geoproperty, scope_q, expires_at, contexts, throttling + pgis_geometry, geoproperty, scope_q, expires_at, contexts, throttling, sys_attrs FROM subscription LEFT JOIN entity_selector ON entity_selector.subscription_id = subscription.id LEFT JOIN geometry_query ON geometry_query.subscription_id = subscription.id