"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 duration",operationId:"deleteInvestmentDuration",tags:["Admin","Investment","Durations"],parameters:(0,query_1.deleteRecordParams)("Investment duration"),responses:(0,query_1.deleteRecordResponses)("Investment duration"),permission:"delete.investment.duration",requiresAuth:!0,logModule:"ADMIN_FIN",logTitle:"Delete Investment Duration"};exports.default=async e=>{const{params:t,query:n,ctx:s}=e;null==s||s.step("Validating investment duration ID");null==s||s.step("Deleting investment duration record");const r=await(0,query_1.handleSingleDelete)({model:"investmentDuration",id:t.id,query:n});null==s||s.success();return r};