From 37c3b88bb133e991b54b9595523ad1741f329c61 Mon Sep 17 00:00:00 2001 From: Gregory Tertyshny Date: Mon, 15 Jul 2024 14:45:38 +0300 Subject: [PATCH] fix --- lib/bookPriceFor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bookPriceFor.js b/lib/bookPriceFor.js index 6d4b858..9630ff0 100644 --- a/lib/bookPriceFor.js +++ b/lib/bookPriceFor.js @@ -1,6 +1,7 @@ import { bookUrl } from "./bookUrl"; import { extractPriceFrom } from "./extractPriceFrom"; import { getRate } from "./rates"; +import { convertPrice } from "./convertPrice"; import { cacheBookPrice, getBookPrice } from "./cache"; import { format, isToday } from "date-fns"; @@ -23,7 +24,7 @@ export const bookPriceFor = async (country) => { if (countryPrice) { l("found price", countryPrice, url); const rate = await getRate(country.currencyCode); - convertedPrice = await convertedPrice( + convertedPrice = await convertPrice( countryPrice, country.currencyCode, rate,