fetchhistory changes
Deploy Node App / deploy (push) Successful in 7s

This commit is contained in:
Gitea
2026-06-03 12:38:18 +05:30
parent 83aadc472b
commit 6c834f345f
+6 -1
View File
@@ -3,7 +3,12 @@ const clickhouse = require('../database/clickhouse');
const fetchHistory = async (req, res) => {
try {
const { response_id } = req.body;
if (!response_id) {
return res.status(400).json({
success: false,
message: "response_id not found"
});
}
const rows = await clickhouse.query({
query: `
SELECT response_json