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