mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-23 16:05:24 +00:00
Logs for auto renew
This commit is contained in:
parent
224a5f9fc5
commit
dee043aef1
@ -31,6 +31,7 @@ export default async function handler(req, res) {
|
||||
const response = await nwcProvider.sendPayment(newInvoice?.paymentRequest);
|
||||
|
||||
if (response && response?.preimage) {
|
||||
console.log(`SUBSCRIPTION AUTO-RENEWED`, response);
|
||||
await updateUserSubscription(userId, true, nwc);
|
||||
continue; // Skip adding to stillExpired list
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user