@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/weerss.js +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xriss/weerss",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "source": "weerss.js",
5
5
  "type": "module",
6
6
  "repository": {
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