Skip to content

Commit

Permalink
Fix helpers.Hydra#fetchSubscription method
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Jan 24, 2020
1 parent 794684e commit 19c0746
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/org/camunda/latera/bss/helpers/hydra/Service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ trait Service {
def subscriptionId = order."${subscriptionPrefix}Id" ?: [is: 'null']
def subscription = hydra.getSubscription(subscriptionId)

order."${parSubscriptionPrefix}Id" = subscription?.n_par_subscription_id
order."${prevSubscriptionPrefix}Id" = subscription?.n_prev_subscription_id
order."${prefix}BeginDate" = subscription?.d_begin ? local(subscription.d_begin) : null
order."${prefix}EndDate" = subscription?.d_end ? local(subscription.d_end) : null
order."${prefix}IsClosed" = decodeBool(subscription?.c_fl_closed)
order."${parSubscriptionPrefix}Id" = subscription?.n_par_subscription_id
order."${prevSubscriptionPrefix}Id" = subscription?.n_prev_subscription_id
order."${subscriptionPrefix}BeginDate" = subscription?.d_begin ? local(subscription.d_begin) : null
order."${subscriptionPrefix}EndDate" = subscription?.d_end ? local(subscription.d_end) : null
order."${subscriptionPrefix}IsClosed" = decodeBool(subscription?.c_fl_closed)
if (isEmpty(order."${customerPrefix}Id")) {
order."${customerPrefix}Id" = subscription?.n_customer_id
}
Expand Down

0 comments on commit 19c0746

Please sign in to comment.