From 8189028f44d4369801b8f3bc247ce880e7554edc Mon Sep 17 00:00:00 2001 From: siiky Date: Mon, 21 Nov 2022 17:10:40 +0000 Subject: [PATCH] fix: pick the cashbox notifications threshold --- lib/new-config-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/new-config-manager.js b/lib/new-config-manager.js index 8428d6a6..58c282fc 100644 --- a/lib/new-config-manager.js +++ b/lib/new-config-manager.js @@ -92,7 +92,7 @@ const getNotifications = (cryptoCurrency, machine, config) => { const findByMachine = _.find(_.matches({ machine })) const cryptoFields = ['cryptoHighBalance', 'cryptoLowBalance', 'highBalance', 'lowBalance'] - const fiatFields = ['fillingPercentageCassette1', 'fillingPercentageCassette2', 'fillingPercentageCassette3', 'fillingPercentageCassette4'] + const fiatFields = ['cashbox', 'fillingPercentageCassette1', 'fillingPercentageCassette2', 'fillingPercentageCassette3', 'fillingPercentageCassette4'] const getCryptoSettings = _.compose(_.pick(cryptoFields), _.defaultTo(notifications), findByCryptoCurrency) const cryptoSettings = getCryptoSettings(notifications.cryptoBalanceOverrides)