"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes a specific investment",operationId:"deleteInvestment",tags:["Admin","General","Investments"],parameters:(0,query_1.deleteRecordParams)("investment"),responses:(0,query_1.deleteRecordResponses)("investment"),permission:"delete.investment",requiresAuth:!0,logModule:"ADMIN_FIN",logTitle:"Delete Investment History"};exports.default=async e=>{const{params:t,query:s,ctx:n}=e;null==n||n.step("Validating investment ID");null==n||n.step("Deleting investment record");const r=await(0,query_1.handleSingleDelete)({model:"investment",id:t.id,query:s});null==n||n.success();return r};