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