@@ -3,7 +3,12 @@ const clickhouse = require('../database/clickhouse');
|
|||||||
const fetchHistory = async (req, res) => {
|
const fetchHistory = async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const { response_id } = req.body;
|
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({
|
const rows = await clickhouse.query({
|
||||||
query: `
|
query: `
|
||||||
SELECT response_json
|
SELECT response_json
|
||||||
|
|||||||
Reference in New Issue
Block a user