Merge pull request #423 from shocknet/fix/wait-before-req
wait before channel req
This commit is contained in:
commit
57a1c0cb29
1 changed files with 9 additions and 3 deletions
|
|
@ -806,7 +806,9 @@ module.exports = async (
|
|||
|
||||
onNewChannelBackup()
|
||||
|
||||
channelRequest(invite)
|
||||
setTimeout(() => {
|
||||
channelRequest(invite)
|
||||
}, 30 * 1000)
|
||||
res.json({
|
||||
authorization: token,
|
||||
user: {
|
||||
|
|
@ -967,7 +969,9 @@ module.exports = async (
|
|||
await LightningServices.init()
|
||||
|
||||
const token = await auth.generateToken()
|
||||
channelRequest(invite)
|
||||
setTimeout(() => {
|
||||
channelRequest(invite)
|
||||
}, 30 * 1000)
|
||||
return res.json({
|
||||
mnemonicPhrase,
|
||||
authorization: token,
|
||||
|
|
@ -1072,7 +1076,9 @@ module.exports = async (
|
|||
|
||||
// Generate Access Token
|
||||
const token = await auth.generateToken()
|
||||
channelRequest(invite)
|
||||
setTimeout(() => {
|
||||
channelRequest(invite)
|
||||
}, 30 * 1000)
|
||||
res.json({
|
||||
authorization: token,
|
||||
user: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue