text: const express = require("express");
  const knex = require("knex")(require("../../knexfile"));
  const { checkAuthenticated, logError } = require("../utils");
  
  const router = express.Router();
  
  router.delete("/api/comments/:commentId", checkAuthenticated, (req, res) => {
    knex("ticket_comments")
      .where({ id: req.params.commentId })
      .del()
      .then(() => res.sendStatus(204))
      .catch((err) => logError(err, "DELETE /api/comments/:commentId"));
  });
  
  module.exports = router;
  