Skip to content

Commit

Permalink
use deleted_at timestamp to set is_active
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 7, 2020
1 parent 4c5f5ed commit 2385769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/export_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def organizations
accountName: provider.name,
fabricaAccountId: provider.symbol,
parentFabricaAccountId: provider.consortium.present? ? provider.consortium.symbol : nil,
isActive: provider.is_active == "\x01",
isActive: provider.deleted_at.blank?,
accountDescription: provider.description,
accountWebsite: provider.website,
region: provider.region_human_name,
Expand Down Expand Up @@ -257,7 +257,7 @@ def repositories
accountName: name,
fabricaAccountId: client.symbol,
parentFabricaAccountId: client.provider.present? ? client.provider.symbol : nil,
isActive: client.is_active == "\x01",
isActive: client.deleted_at.blank?
accountDescription: client.description,
accountWebsite: client.url,
generalContactEmail: client.system_email,
Expand Down

0 comments on commit 2385769

Please sign in to comment.