diff --git a/src/modules/swap/createSwap/index.ts b/src/modules/swap/createSwap/index.ts index 4eb40b1..4a8acdc 100644 --- a/src/modules/swap/createSwap/index.ts +++ b/src/modules/swap/createSwap/index.ts @@ -8,7 +8,7 @@ export const createSwap = async ( ): Promise> => { const result = await create({ ...params, resource: 'swap' }); - (async () => { + await (async () => { try { if (!params.context.affiliateApi) { logger('No affiliate program API present in context.');