@xriss/weerss 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db.js +8 -1
- package/package.json +1 -1
package/db.js
CHANGED
|
@@ -241,6 +241,8 @@ db.list=async function(table,filter)
|
|
|
241
241
|
}
|
|
242
242
|
// console.log(filters)
|
|
243
243
|
|
|
244
|
+
try{
|
|
245
|
+
|
|
244
246
|
await db.handle.each(`
|
|
245
247
|
|
|
246
248
|
SELECT * FROM ${table}
|
|
@@ -251,11 +253,16 @@ db.list=async function(table,filter)
|
|
|
251
253
|
try{
|
|
252
254
|
rs.push(JSON.parse(row.value))
|
|
253
255
|
}catch(e){
|
|
254
|
-
console.log("BROKEN SQLITE
|
|
256
|
+
console.log("BROKEN SQLITE RESULT")
|
|
255
257
|
console.log(row.value)
|
|
256
258
|
console.log(e)
|
|
257
259
|
}
|
|
258
260
|
})
|
|
259
261
|
|
|
262
|
+
}catch(e){
|
|
263
|
+
console.log("BROKEN SQLITE QUERY")
|
|
264
|
+
console.log(e)
|
|
265
|
+
}
|
|
266
|
+
|
|
260
267
|
return rs // filtered only, sorted by date
|
|
261
268
|
}
|