import axios from "axios"; export default async (query: { id: string; source: string }) => { try { const response = await axios.post("http://localhost:3000/query/update", { queryId: query.id, source: query.source, }); return response; } catch (error) { console.error("Error in updating query:", error); } };