Fix import inconsistency between app and worker
This commit is contained in:
parent
ba00c3d9fa
commit
b569c8faa0
|
@ -20,10 +20,13 @@ export const SERVER_WALLET_DEFS = [lnd]
|
|||
|
||||
function walletResolvers () {
|
||||
const resolvers = {}
|
||||
for (const {
|
||||
schema,
|
||||
server: { walletType, walletField, resolverName, testConnect }
|
||||
} of SERVER_WALLET_DEFS) {
|
||||
for (
|
||||
const w of SERVER_WALLET_DEFS) {
|
||||
const {
|
||||
schema,
|
||||
server: { walletType, walletField, resolverName, testConnect }
|
||||
// app and worker import file differently
|
||||
} = w.default || w
|
||||
resolvers[resolverName] = async (parent, { settings, ...data }, { me, models }) => {
|
||||
return await upsertWallet({
|
||||
schema,
|
||||
|
|
Loading…
Reference in New Issue