frequency needs amount
This commit is contained in:
parent
5474e5217d
commit
9a1aff58d0
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue