"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Updates the status of a wallet",operationId:"updateWalletStatus",tags:["Admin","Wallets"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the wallet to update",schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{status:{type:"boolean",description:"New status to apply (true for active, false for inactive)"}},required:["status"]}}}},responses:(0,query_1.updateRecordResponses)("Wallet"),requiresAuth:!0,permission:"edit.wallet",logModule:"ADMIN_FIN",logTitle:"Update Wallet Status"};exports.default=async e=>{const{body:t,params:s,ctx:a}=e,{id:r}=s,{status:u}=t,o=await(0,query_1.updateStatus)("wallet",r,u);null==a||a.success("Wallet status updated successfully");return o};