fix
This commit is contained in:
parent
f1947c0e00
commit
37c3b88bb1
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
import { bookUrl } from "./bookUrl";
|
import { bookUrl } from "./bookUrl";
|
||||||
import { extractPriceFrom } from "./extractPriceFrom";
|
import { extractPriceFrom } from "./extractPriceFrom";
|
||||||
import { getRate } from "./rates";
|
import { getRate } from "./rates";
|
||||||
|
import { convertPrice } from "./convertPrice";
|
||||||
import { cacheBookPrice, getBookPrice } from "./cache";
|
import { cacheBookPrice, getBookPrice } from "./cache";
|
||||||
import { format, isToday } from "date-fns";
|
import { format, isToday } from "date-fns";
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ export const bookPriceFor = async (country) => {
|
||||||
if (countryPrice) {
|
if (countryPrice) {
|
||||||
l("found price", countryPrice, url);
|
l("found price", countryPrice, url);
|
||||||
const rate = await getRate(country.currencyCode);
|
const rate = await getRate(country.currencyCode);
|
||||||
convertedPrice = await convertedPrice(
|
convertedPrice = await convertPrice(
|
||||||
countryPrice,
|
countryPrice,
|
||||||
country.currencyCode,
|
country.currencyCode,
|
||||||
rate,
|
rate,
|
||||||
|
|
Loading…
Reference in a new issue