From dc886d3cec46f1517f3be81f5f106358470f148a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 22 Mar 2022 05:52:39 -0400 Subject: [PATCH] Remove access dates broken by Scite A non-date value ('INVALID_SCITE_VALUE') apparently gets output as `false` in toJSON(), which results in a sync error. --- chrome/content/zotero/xpcom/schema.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index b62a703c09..dd9ae4f644 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -3705,5 +3705,6 @@ Zotero.Schema = new function(){ else { await Zotero.DB.queryAsync("UPDATE itemDataValues SET value='INVALID_SCITE_VALUE' WHERE value=0"); } + await Zotero.DB.queryAsync("DELETE FROM itemData WHERE fieldID=(SELECT fieldID FROM fields WHERE fieldName='accessDate') AND valueID=?", replacementValueID); } }