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