From c32b0cfd050aeb1e53b8d9bb9f45f01a399ba4d6 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 16 Nov 2023 19:32:00 +0000 Subject: [PATCH] fix --- apps/proxy/src/routes/proxy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/proxy/src/routes/proxy.ts b/apps/proxy/src/routes/proxy.ts index 8825e3e..94a3434 100644 --- a/apps/proxy/src/routes/proxy.ts +++ b/apps/proxy/src/routes/proxy.ts @@ -96,7 +96,9 @@ async function logRequestToDatabase({ try { InfluxWriteApi.writePoint(point); InfluxWriteApi.writePoint( - new Point("proxy").intField("totalRequests", totalRequests) + new Point("proxy") + .intField("totalRequests", totalRequests) + .timestamp(Date.now()) ); } catch (ex) { console.log("Failed to write to influx");