avoid a memory by not attaching jobs to a one time use gun instance

This commit is contained in:
Daniel Lugo 2020-02-25 19:12:34 -04:00
parent c6f8e37c5f
commit f90331fcfa

View file

@ -261,9 +261,6 @@ const authenticate = async (alias, pass, user = getUser()) => {
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)
return ack.sea.pub return ack.sea.pub
} else { } else {
throw new Error('Unknown error.') throw new Error('Unknown error.')