"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes an investment plan",operationId:"deleteInvestmentPlan",tags:["Admin","Investment Plan"],logModule:"ADMIN_FIN",logTitle:"Delete Investment Plan",parameters:(0,query_1.deleteRecordParams)("investment plan"),responses:(0,query_1.deleteRecordResponses)("Investment plan"),permission:"delete.investment.plan",requiresAuth:!0};exports.default=async e=>{const{params:t,query:n,ctx:s}=e;null==s||s.step("Deleting investment plan");const l=await(0,query_1.handleSingleDelete)({model:"investmentPlan",id:t.id,query:n});null==s||s.success("Investment plan deleted successfully");return l};