"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes an exchange market",operationId:"deleteExchangeMarket",tags:["Admin","Exchange","Markets"],parameters:(0,query_1.deleteRecordParams)("exchange market"),responses:(0,query_1.deleteRecordResponses)("Exchange market"),requiresAuth:!0,permission:"delete.exchange.market",logModule:"ADMIN_FIN",logTitle:"Delete Exchange Market"};exports.default=async e=>{const{params:t,query:a,ctx:r}=e;null==r||r.step("Deleting exchange market");const s=await(0,query_1.handleSingleDelete)({model:"exchangeMarket",id:t.id,query:a});null==r||r.success();return s};