Fix import inconsistency between app and worker

This commit is contained in:
ekzyis 2024-07-06 06:52:46 +02:00
parent ba00c3d9fa
commit b569c8faa0
1 changed files with 7 additions and 4 deletions

View File

@ -20,10 +20,13 @@ export const SERVER_WALLET_DEFS = [lnd]
function walletResolvers () {
const resolvers = {}
for (const {
for (
const w of SERVER_WALLET_DEFS) {
const {
schema,
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 }) => {
return await upsertWallet({
schema,