Logs for auto renew

This commit is contained in:
austinkelsay 2024-11-08 16:03:34 -06:00
parent 224a5f9fc5
commit dee043aef1
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -31,6 +31,7 @@ export default async function handler(req, res) {
const response = await nwcProvider.sendPayment(newInvoice?.paymentRequest); const response = await nwcProvider.sendPayment(newInvoice?.paymentRequest);
if (response && response?.preimage) { if (response && response?.preimage) {
console.log(`SUBSCRIPTION AUTO-RENEWED`, response);
await updateUserSubscription(userId, true, nwc); await updateUserSubscription(userId, true, nwc);
continue; // Skip adding to stillExpired list continue; // Skip adding to stillExpired list
} else { } else {