diff --git a/index.js b/index.js index 395ac28..550027a 100644 --- a/index.js +++ b/index.js @@ -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); } }