Skip to content

Commit

Permalink
Handle nil data cases in invitation status and legacy order ID methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Mar 6, 2025
1 parent 96217f1 commit 4cf38d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/invitation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,12 @@ def approve_expense

def status
return 'DELETED' if deleted_at.present?
return nil if data.blank?
data['status']
end

def legacy_order_id
return nil if data.blank?
data['legacyId']
end
end

0 comments on commit 4cf38d4

Please sign in to comment.