From 3cd17357febd29793195a0e1c0b0b0db27c82bef Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 13 Jan 2020 16:16:02 -0400 Subject: [PATCH] spin up onOrders job on auth --- services/gunDB/Mediator/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index be27bf87..35a2debf 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -154,6 +154,7 @@ const authenticate = async (alias, pass) => { } // move this to a subscription; implement off() ? todo API.Jobs.onAcceptedRequests(user, mySEA) + API.Jobs.onOrders(user, gun, mySEA) return user._.sea.pub } @@ -177,6 +178,7 @@ const authenticate = async (alias, pass) => { throw new Error(ack.err) } else if (typeof ack.sea === 'object') { API.Jobs.onAcceptedRequests(user, mySEA) + API.Jobs.onOrders(user, gun, mySEA) const mySec = await mySEA.secret(user._.sea.epub, user._.sea) if (typeof mySec !== 'string') {