Merge pull request #37 from shocknet/private-invoices
all invoices are now private
This commit is contained in:
commit
1d3daf9ce0
2 changed files with 3 additions and 2 deletions
|
|
@ -58,7 +58,8 @@ const listenerForAddr = (addr, user, SEA) => async (order, orderID) => {
|
||||||
{
|
{
|
||||||
expiry: 36000,
|
expiry: 36000,
|
||||||
memo,
|
memo,
|
||||||
value: amount
|
value: amount,
|
||||||
|
private: true
|
||||||
},
|
},
|
||||||
(
|
(
|
||||||
/** @type {any} */ error,
|
/** @type {any} */ error,
|
||||||
|
|
|
||||||
|
|
@ -1309,7 +1309,7 @@ module.exports = async (
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const invoiceRequest = { memo: req.body.memo };
|
const invoiceRequest = { memo: req.body.memo, private: true };
|
||||||
if (req.body.value) {
|
if (req.body.value) {
|
||||||
invoiceRequest.value = req.body.value;
|
invoiceRequest.value = req.body.value;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue