@xriss/weerss 0.0.40 → 0.0.42
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/package.json +1 -1
- package/weerss.js +11 -0
package/package.json
CHANGED
package/weerss.js
CHANGED
|
@@ -620,6 +620,17 @@ weerss.purge=async function(args)
|
|
|
620
620
|
let keep=0
|
|
621
621
|
let drop=0
|
|
622
622
|
|
|
623
|
+
await db.handle.run(`
|
|
624
|
+
|
|
625
|
+
DELETE FROM keyval WHERE json_valid(value)==0 ;
|
|
626
|
+
DELETE FROM hoard WHERE json_valid(value)==0 ;
|
|
627
|
+
DELETE FROM feeds WHERE json_valid(value)==0 ;
|
|
628
|
+
DELETE FROM items WHERE json_valid(value)==0 ;
|
|
629
|
+
DELETE FROM torrents WHERE json_valid(value)==0 ;
|
|
630
|
+
DELETE FROM shows WHERE json_valid(value)==0 ;
|
|
631
|
+
|
|
632
|
+
`)
|
|
633
|
+
|
|
623
634
|
await db.handle.each(`
|
|
624
635
|
|
|
625
636
|
SELECT * FROM items
|