From c26f60f7ac6cb2040a07370beadba9a1082373ec Mon Sep 17 00:00:00 2001 From: Se7enZ Date: Tue, 15 Oct 2024 13:25:36 +0200 Subject: [PATCH] Fix `Unknown command` error when disabling offers on CLN. ([#1443]) --- backend/controllers/cln/offers.js | 2 +- server/controllers/cln/offers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/controllers/cln/offers.js b/backend/controllers/cln/offers.js index f427d5381..13080bd90 100644 --- a/backend/controllers/cln/offers.js +++ b/backend/controllers/cln/offers.js @@ -83,7 +83,7 @@ export const disableOffer = (req, res, next) => { if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } - options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/disableOffer'; + options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/disableoffer'; options.body = req.body; request.post(options).then((body) => { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Offers', msg: 'Offer Disabled', data: body }); diff --git a/server/controllers/cln/offers.ts b/server/controllers/cln/offers.ts index 993b852c3..a515db419 100644 --- a/server/controllers/cln/offers.ts +++ b/server/controllers/cln/offers.ts @@ -82,7 +82,7 @@ export const disableOffer = (req, res, next) => { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Offers', msg: 'Disabling Offer..' }); options = common.getOptions(req); if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); } - options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/disableOffer'; + options.url = req.session.selectedNode.settings.lnServerUrl + '/v1/disableoffer'; options.body = req.body; request.post(options).then((body) => { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Offers', msg: 'Offer Disabled', data: body });