fx128: fix broken database backup (#4931)

Per https://bugzilla.mozilla.org/show_bug.cgi?id=1869060#c18,
the backup utility was removed from the storage service and
exposed durectly on the connection itself in fx128.

Fixes: #4929
This commit is contained in:
abaevbog 2024-12-18 04:11:27 -08:00 • committed by GitHub
parent 7031d1928a
commit cddbbdd208
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1055,11 +1055,7 @@ Zotero.DBConnection.prototype.backupDatabase = async function (suffix, force) {
if (DB_LOCK_EXCLUSIVE) {
await this.queryAsync("PRAGMA main.locking_mode=NORMAL", false, { inBackup: true });
}
storageService.backupDatabaseFile(
Zotero.File.pathToFile(file),
PathUtils.filename(tmpFile),
Zotero.File.pathToFile(file).parent
);
await this._connection.backup(tmpFile);
}
catch (e) {
Zotero.logError(e);