mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
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:
parent
7031d1928a
commit
cddbbdd208
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue