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 () {
|
function walletResolvers () {
|
||||||
const resolvers = {}
|
const resolvers = {}
|
||||||
for (const {
|
for (
|
||||||
|
const w of SERVER_WALLET_DEFS) {
|
||||||
|
const {
|
||||||
schema,
|
schema,
|
||||||
server: { walletType, walletField, resolverName, testConnect }
|
server: { walletType, walletField, resolverName, testConnect }
|
||||||
} of SERVER_WALLET_DEFS) {
|
// app and worker import file differently
|
||||||
|
} = w.default || w
|
||||||
resolvers[resolverName] = async (parent, { settings, ...data }, { me, models }) => {
|
resolvers[resolverName] = async (parent, { settings, ...data }, { me, models }) => {
|
||||||
return await upsertWallet({
|
return await upsertWallet({
|
||||||
schema,
|
schema,
|
||||||
|
|
Loading…
Reference in New Issue