Update query timestamp in axios post request to fetch specific data.
This commit is contained in:
@@ -17,7 +17,7 @@ wss.on('connection', (ws) => {
|
||||
|
||||
setInterval(async () => {
|
||||
try {
|
||||
const response = await axios.post('https://vmselect.riff.cc/select/logsql/query', 'query=_time:5s relay received');
|
||||
const response = await axios.post('https://vmselect.riff.cc/select/logsql/query', 'query=_time:2024-06-27T05:13 relay received');
|
||||
try {
|
||||
const responseData = JSON.parse(response.data);
|
||||
console.log('Parsed response data:', responseData);
|
||||
|
||||
Reference in New Issue
Block a user