From c93b46a974b5f1dd11679565494b33c838eda596 Mon Sep 17 00:00:00 2001 From: JP Date: Mon, 9 Dec 2024 14:40:02 +0000 Subject: [PATCH] feat: beefy fix --- .../src/scripts/deleteAdapterMetadata.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/adapters-library/src/scripts/deleteAdapterMetadata.ts b/packages/adapters-library/src/scripts/deleteAdapterMetadata.ts index a00a4f316..de5ff43aa 100644 --- a/packages/adapters-library/src/scripts/deleteAdapterMetadata.ts +++ b/packages/adapters-library/src/scripts/deleteAdapterMetadata.ts @@ -48,26 +48,28 @@ export function deleteAdapterMetadata( products, chains, }: { protocols: string; products: string; chains: string }) => { - console.log('Starting deletion process...') console.log('Protocols:', protocols) console.log('Products:', products) console.log('Chains:', chains) const filterProtocolIds = multiProtocolFilter(protocols)! - if (!protocols || filterProtocolIds && filterProtocolIds.length !== 1) { + if ( + !protocols || + (filterProtocolIds && filterProtocolIds.length !== 1) + ) { throw new Error('One protocol must be supplied at a time') } const protocolId = filterProtocolIds.pop()! const filterProductIds = products?.split(',') - if (!products || filterProductIds && filterProductIds.length !== 1) { + if (!products || (filterProductIds && filterProductIds.length !== 1)) { throw new Error('One product must be supplied at a time') } const productId = filterProductIds?.pop()! const filterChainIds = multiChainFilter(chains)! - if (!chains || filterChainIds && filterChainIds.length !== 1) { + if (!chains || (filterChainIds && filterChainIds.length !== 1)) { throw new Error('One chain must be supplied at a time') } const chainId = filterChainIds.pop()!