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.
This commit is contained in:
Dan Stillman 2022-03-22 05:52:39 -04:00
parent d14a8b1d92
commit dc886d3cec

View file

@ -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);
}
}