Return numbers, not strings
All checks were successful
Run node --check on everything / node-check (pull_request) Successful in 7s
Make sure the server is actually able to start / prettier (pull_request) Successful in 24s
Check project using prettier / prettier (pull_request) Successful in 23s
Run node --check on everything / node-check (push) Successful in 10s
Make sure the server is actually able to start / prettier (push) Successful in 44s
Check project using prettier / prettier (push) Successful in 41s

This commit is contained in:
9pfs 2024-05-24 21:09:49 +00:00
parent b622759083
commit 2304393052
Signed by: 9pfs
SSH key fingerprint: SHA256:TOcGxMQCfy4VvRM8AzgXErKXdkAtaTcpGXgYMpyoJoY

View file

@ -71,7 +71,7 @@ async function get_counter_value(ns_name, key) {
namespace_id = ${nsid} AND
name = ${key}`;
if (sql_res.length == 0) return null;
else return sql_res[0].value;
else return parseInt(sql_res[0].value);
}
}