Commit 98f7984 1 parent f1a28aa commit 98f7984 Copy full SHA for 98f7984
File tree 1 file changed +5
-21
lines changed
packages/backend/src/rates
1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -190,27 +190,8 @@ class RatesServiceImpl implements RatesService {
190
190
baseAssetCode : string ,
191
191
tenantId : string
192
192
) : Promise < Rates > {
193
- let url
194
- try {
195
- url = await this . getExchangeRatesUrl ( tenantId )
196
- } catch ( err ) {
197
- const errorMessage = 'Could not get url for exchange rates'
198
-
199
- this . deps . logger . error (
200
- {
201
- ...( isAxiosError ( err )
202
- ? {
203
- errorMessage : err . message ,
204
- errorCode : err . code ,
205
- errorStatus : err . status
206
- }
207
- : { err } )
208
- } ,
209
- errorMessage
210
- )
193
+ const url = await this . getExchangeRatesUrl ( tenantId )
211
194
212
- throw new Error ( errorMessage )
213
- }
214
195
if ( ! url ) {
215
196
return { base : baseAssetCode , rates : { } }
216
197
}
@@ -248,7 +229,10 @@ class RatesServiceImpl implements RatesService {
248
229
249
230
return tenantExchangeRatesUrl
250
231
} catch ( error ) {
251
- this . deps . logger . error ( { error } , 'Failed to get exchange rates URL' )
232
+ this . deps . logger . error (
233
+ { error } ,
234
+ 'Failed to get exchange rates URL from database'
235
+ )
252
236
}
253
237
}
254
238
You can’t perform that action at this time.
0 commit comments