"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query"),utils_1=require("../utils");exports.metadata={summary:"Retrieves detailed information of a specific comment by ID",operationId:"getCommentById",tags:["Admin","Content","Comment"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the comment to retrieve",schema:{type:"string"}}],responses:{200:{description:"Comment details",content:{"application/json":{schema:{type:"object",properties:utils_1.baseCommentSchema}}}},401:query_1.unauthorizedResponse,404:(0,query_1.notFoundMetadataResponse)("Comment"),500:query_1.serverErrorResponse},permission:"view.blog.comment",requiresAuth:!0,logModule:"ADMIN_BLOG",logTitle:"Get comment by ID"};exports.default=async e=>{const{params:t,ctx:o}=e;null==o||o.step("Validating comment ID");null==o||o.step("Fetching comment");const s=await(0,query_1.getRecord)("comment",t.id);null==o||o.success("Comment retrieved successfully");return s};