feature/IO-3056-Enhanced-Lightbox-Logging

This commit is contained in:
Dave Richer
2024-12-11 12:08:29 -08:00
parent b955eb01b4
commit b3c948f0c7

View File

@@ -211,12 +211,9 @@ exports.checkfee = async (req, res) => {
});
if (!req.body.amount || req.body.amount <= 0) {
logger.log(
"intellipay-checkfee-skip",
"DEBUG",
req.user?.email,
"Amount is zero or undefined, skipping fee check."
);
logger.log("intellipay-checkfee-skip", "DEBUG", req.user?.email, null, {
message: "Amount is zero or undefined, skipping fee check."
});
res.json({ fee: 0 });
return;
}