frequency needs amount

This commit is contained in:
boufni95 2024-09-20 17:53:58 +00:00
parent 5474e5217d
commit 9a1aff58d0

View file

@ -94,6 +94,9 @@ export class DebitManager {
const appUserId = pointer const appUserId = pointer
const pointerFreq = pointerdata as RecurringDebit const pointerFreq = pointerdata as RecurringDebit
if (pointerFreq.frequency) { if (pointerFreq.frequency) {
if (!amount_sats) {
return { status: 'fail', debitRes: { res: 'GFY', error: nip68errs[5], code: 5 } }
}
const debitAccess = await this.storage.debitStorage.GetDebitAccess(appUserId, requestorPub) const debitAccess = await this.storage.debitStorage.GetDebitAccess(appUserId, requestorPub)
if (!debitAccess) { if (!debitAccess) {
return { return {