1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Fix: unable to add accounts without plain set up (#1769)

* Update family.rb

Fix for: https://github.com/maybe-finance/maybe/issues/1766

Signed-off-by: Jacco Broeren <jaccobroeren@freedom.nl>

* Update family.rb

Add commenting.

Signed-off-by: Jacco Broeren <jaccobroeren@freedom.nl>

---------

Signed-off-by: Jacco Broeren <jaccobroeren@freedom.nl>
This commit is contained in:
Jacco Broeren 2025-02-03 17:18:49 +01:00 committed by GitHub
parent 550991e240
commit b02380ac97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,6 +63,9 @@ class Family < ApplicationRecord
self.class.plaid_us_provider
end
# early return when no provider
return nil unless provider
provider.get_link_token(
user_id: id,
webhooks_url: webhooks_url,