Spell checking

This commit is contained in:
Daniel Lugo 2022-01-17 13:16:16 -04:00
parent 43821ff7fe
commit 0e241a8b7a
2 changed files with 59 additions and 8 deletions

53
.vscode/settings.json vendored
View file

@ -6,26 +6,77 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"cSpell.words": [
"acked",
"addinvoice",
"Authing",
"channelbalance",
"ciphertext",
"closechannel",
"closedchannels",
"Cltv",
"connectpeer",
"disconnectpeer",
"eccrypto",
"endregion",
"ephem",
"epriv",
"Epub",
"estimatefee",
"estimateroutefee",
"exportallchanbackups",
"exportchanbackup",
"falsey",
"forwardinghistory",
"getchaninfo",
"getinfo",
"getnetworkinfo",
"getnodeinfo",
"GUNRPC",
"Healthz",
"initwall",
"ISEA",
"keysend",
"kubernetes",
"listchannels",
"listinvoices",
"listpayments",
"listpeers",
"listunspent",
"lndchanbackups",
"LNDRPC",
"lndstreaming",
"lnrpc",
"lres",
"msgpack",
"newaddress",
"openchannel",
"otheruser",
"payreq",
"pendingchannels",
"preimage",
"PUBKEY",
"qrcode",
"queryroute",
"radata",
"Reqs",
"resave",
"sendcoins",
"sendmany",
"sendpayment",
"sendtoroute",
"serverhost",
"serverport",
"shockping",
"SHOCKWALLET",
"signmessage",
"thenables",
"trackpayment",
"txid",
"unfollow",
"Unlocker",
"unsubscription",
"uuidv"
"utxos",
"uuidv",
"verifymessage",
"walletbalance"
]
}

View file

@ -1969,23 +1969,23 @@ module.exports = async (
feeLimit,
sessionUuid
} = req.body
logger.info('handling spont pay')
logger.info('handling spontaneous pay')
if (!feeLimit) {
logger.error(
'please provide a "feeLimit" to the send spont payment request'
'please provide a "feeLimit" to the send spontaneous payment request'
)
return res.status(500).json({
errorMessage:
'please provide a "feeLimit" to the send spont payment request'
'please provide a "feeLimit" to the send spontaneous payment request'
})
}
if (!recipientPub || !amount) {
logger.info(
'please provide a "recipientPub" and "amount" to the send spont payment request'
'please provide a "recipientPub" and "amount" to the send spontaneous payment request'
)
return res.status(500).json({
errorMessage:
'please provide a "recipientPub" and "amount" to the send spont payment request'
'please provide a "recipientPub" and "amount" to the send spontaneous payment request'
})
}
try {
@ -1999,7 +1999,7 @@ module.exports = async (
)
res.json({ preimage, sessionUuid })
} catch (err) {
logger.info('spont pay err:', err)
logger.info('spontaneous pay err:', err)
return res.status(500).json({
errorMessage: err.message
})
@ -2621,7 +2621,7 @@ module.exports = async (
})
ap.get('/qrCodeGenerator', (req, res) => {
console.log('qrrerrr')
console.log('/qrCodeGenerator')
try {
res.sendFile(path.join(__dirname, '../public/qrcode.min.js'))
} catch (e) {