Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 1b937b7

Browse files
committed
Fix sync to conway
1 parent b3bbc56 commit 1b937b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/profile-async/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ func handleConwaySync(ctx context.Context, env *conf.Env, kc *keycloak.Keycloak[
108108
// "leadership": false, // remember to just set this manually
109109
"non_billable": user.NonBillable,
110110
"discount_type": user.DiscountType,
111-
"building_access_approver": 9001,
112111
"fob_id": user.FobID,
113112
"stripe_customer_id": user.StripeCustomerID,
114113
"stripe_subscription_id": user.StripeSubscriptionID,
@@ -139,7 +138,7 @@ func handleConwaySync(ctx context.Context, env *conf.Env, kc *keycloak.Keycloak[
139138
if user.PaypalMetadata.TimeRFC3339.After(time.Unix(0, 0)) {
140139
out["paypal_last_payment"] = user.PaypalMetadata.TimeRFC3339.Unix()
141140
}
142-
if ext.ActiveMember {
141+
if ext.ActiveMember && user.StripeSubscriptionID != "" {
143142
out["stripe_subscription_state"] = "active"
144143
}
145144

0 commit comments

Comments
 (0)