Testcommit
This commit is contained in:
		@@ -38,7 +38,6 @@ const write = (kat, key, value, type, cb) => {
 | 
			
		||||
  if (type === "json")
 | 
			
		||||
    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 => {
 | 
			
		||||
    if (rows.length > 0) {
 | 
			
		||||
      sql.any("update cfg set value = $1 where class = $2 && key = $3", [value, kat, key]).then(rows => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user