use boolean field for cached status
All checks were successful
Publish Docker Images / docker (push) Successful in 1m24s

This commit is contained in:
Lee 2023-11-17 09:44:07 +00:00
parent 74f5832a8a
commit eb116c06cd

@ -84,7 +84,7 @@ async function logRequestToDatabase({
const point = new Point("proxy") const point = new Point("proxy")
.tag("type", "request") .tag("type", "request")
.tag("node", nodeId) .tag("node", nodeId)
.tag("cached", cached ? "true" : "false") .booleanField("cached", cached ? true : false)
.stringField("url", url) .stringField("url", url)
.intField("status", status) .intField("status", status)
.timestamp(Date.now()); .timestamp(Date.now());