Testcommit
This commit is contained in:
parent
59be967f29
commit
745216b218
@ -38,7 +38,6 @@ const write = (kat, key, value, type, cb) => {
|
|||||||
if (type === "json")
|
if (type === "json")
|
||||||
value = JSON.stringify(value);
|
value = JSON.stringify(value);
|
||||||
|
|
||||||
console.log(kat, key, value, type);
|
|
||||||
sql.any("select * from cfg where class = $1 && key = $2 limit 1", [kat, key]).then(rows => {
|
sql.any("select * from cfg where class = $1 && key = $2 limit 1", [kat, key]).then(rows => {
|
||||||
if (rows.length > 0) {
|
if (rows.length > 0) {
|
||||||
sql.any("update cfg set value = $1 where class = $2 && key = $3", [value, kat, key]).then(rows => {
|
sql.any("update cfg set value = $1 where class = $2 && key = $3", [value, kat, key]).then(rows => {
|
||||||
|
Loading…
Reference in New Issue
Block a user