diff --git a/modules/express/src/clientRoutes.ts b/modules/express/src/clientRoutes.ts index 9b876303b5..2ead9c8fff 100755 --- a/modules/express/src/clientRoutes.ts +++ b/modules/express/src/clientRoutes.ts @@ -773,9 +773,7 @@ async function handleV2RecoverToken(req: ExpressApiRouteRequest<'express.wallet. * handle wallet fanout unspents * @param req */ -async function handleV2ConsolidateUnspents( - req: ExpressApiRouteRequest<'express.v2.wallet.consolidateunspents', 'post'> -) { +async function handleV2ConsolidateUnspents(req: ExpressApiRouteRequest<'express.wallet.consolidateunspents', 'post'>) { const bitgo = req.bitgo; const coin = bitgo.coin(req.decoded.coin); const wallet = await coin.wallets().get({ id: req.decoded.id }); @@ -1801,7 +1799,7 @@ export function setupAPIRoutes(app: express.Application, config: Config): void { router.post('express.v2.wallet.enableTokens', [prepareBitGo(config), typedPromiseWrapper(handleV2EnableTokens)]); // unspent changes - router.post('express.v2.wallet.consolidateunspents', [ + router.post('express.wallet.consolidateunspents', [ prepareBitGo(config), typedPromiseWrapper(handleV2ConsolidateUnspents), ]); diff --git a/modules/express/src/typedRoutes/api/index.ts b/modules/express/src/typedRoutes/api/index.ts index 6b08dff1ce..17d157fea2 100644 --- a/modules/express/src/typedRoutes/api/index.ts +++ b/modules/express/src/typedRoutes/api/index.ts @@ -165,7 +165,7 @@ export const ExpressWalletConsolidateUnspentsApiSpec = apiSpec({ 'express.v1.wallet.consolidateunspents': { put: PutConsolidateUnspents, }, - 'express.v2.wallet.consolidateunspents': { + 'express.wallet.consolidateunspents': { post: PostConsolidateUnspents, }, }); diff --git a/modules/express/src/typedRoutes/api/v2/consolidateunspents.ts b/modules/express/src/typedRoutes/api/v2/consolidateunspents.ts index be9099f422..b86efc6009 100644 --- a/modules/express/src/typedRoutes/api/v2/consolidateunspents.ts +++ b/modules/express/src/typedRoutes/api/v2/consolidateunspents.ts @@ -100,7 +100,7 @@ export const ConsolidateUnspentsResponse = t.union([ /** * Builds, signs, and sends a transaction to consolidate unspents all in 1 call. Consolidating unspents is only for UTXO-based assets. * - * @operationId express.v2.wallet.consolidateunspents + * @operationId express.wallet.consolidateunspents * @tag Express */ export const PostConsolidateUnspents = httpRoute({