1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Preserve pagination on entry updates (#1563)

* Preserve pagination on entry updates

* Test fix
This commit is contained in:
Zach Gollwitzer 2024-12-20 11:24:46 -05:00 committed by GitHub
parent 7be6a372bf
commit a4d10097d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 41 additions and 15 deletions

View file

@ -23,10 +23,8 @@ module Providable
end
def synth_provider
@synth_provider ||= begin
api_key = self_hosted? ? Setting.synth_api_key : ENV["SYNTH_API_KEY"]
api_key.present? ? Provider::Synth.new(api_key) : nil
end
api_key = self_hosted? ? Setting.synth_api_key : ENV["SYNTH_API_KEY"]
api_key.present? ? Provider::Synth.new(api_key) : nil
end
private