Skip to content

Commit

Permalink
Fix quote fields
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2806 committed Jan 23, 2021
1 parent 66003c3 commit f3bd628
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/flightStatsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ ${this.flightStatsBaseURL}${this.flightRatingsEndpoint}\
]
]

const quote = (await this.gif.contract.call({product, contractName, methodName, parameters})).data
const { _weight, _payoutOptions } = (await this.gif.contract.call({product, contractName, methodName, parameters})).data
const quote = {
weight: _weight,
payoutOptions: _payoutOptions
}
await this.tg.send(` Ratings: ${JSON.stringify(rating)} \n Quote: ${JSON.stringify(quote)}`)
ctx.ok({ rating, quote })
}
Expand Down

0 comments on commit f3bd628

Please sign in to comment.