"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 author",operationId:"deleteAuthor",tags:["Admin","Content","Author"],parameters:(0,query_1.deleteRecordParams)("Author"),responses:(0,query_1.deleteRecordResponses)("Author"),permission:"delete.blog.author",requiresAuth:!0,logModule:"ADMIN_BLOG",logTitle:"Delete author"};exports.default=async e=>{const{params:t,query:r,ctx:s}=e;null==s||s.step("Validating author ID");null==s||s.step("Deleting author");const u=await(0,query_1.handleSingleDelete)({model:"author",id:t.id,query:r});null==s||s.success("Author deleted successfully");return u};