spin up jobs after setup
This commit is contained in:
parent
2d5e950090
commit
a6ab80ac1e
1 changed files with 3 additions and 3 deletions
|
|
@ -198,9 +198,6 @@ const authenticate = async (alias, pass) => {
|
||||||
if (typeof ack.err === 'string') {
|
if (typeof ack.err === 'string') {
|
||||||
throw new Error(ack.err)
|
throw new Error(ack.err)
|
||||||
} else if (typeof ack.sea === 'object') {
|
} else if (typeof ack.sea === 'object') {
|
||||||
API.Jobs.onAcceptedRequests(user, mySEA)
|
|
||||||
API.Jobs.onOrders(user, gun, mySEA)
|
|
||||||
|
|
||||||
mySec = await mySEA.secret(user._.sea.epub, user._.sea)
|
mySec = await mySEA.secret(user._.sea.epub, user._.sea)
|
||||||
|
|
||||||
_currentAlias = user.is ? user.is.alias : ''
|
_currentAlias = user.is ? user.is.alias : ''
|
||||||
|
|
@ -208,6 +205,9 @@ const authenticate = async (alias, pass) => {
|
||||||
|
|
||||||
await new Promise(res => setTimeout(res, 5000))
|
await new Promise(res => setTimeout(res, 5000))
|
||||||
|
|
||||||
|
API.Jobs.onAcceptedRequests(user, mySEA)
|
||||||
|
API.Jobs.onOrders(user, gun, mySEA)
|
||||||
|
|
||||||
return ack.sea.pub
|
return ack.sea.pub
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Unknown error.')
|
throw new Error('Unknown error.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue