mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
Migrate Zotero.Promise#return() in libraries.js
This commit is contained in:
parent
cd813171e7
commit
35c0a76fd0
1 changed files with 2 additions and 3 deletions
|
|
@ -318,13 +318,12 @@ Zotero.Libraries = new function () {
|
|||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
this.updateLastSyncTime = function (libraryID) {
|
||||
this.updateLastSyncTime = async function (libraryID) {
|
||||
Zotero.debug("Zotero.Libraries.updateLastSyncTime() is deprecated. Use Zotero.Library.prototype.updateLastSyncTime instead");
|
||||
this._ensureExists(libraryID);
|
||||
|
||||
let library = Zotero.Libraries.get(libraryID);
|
||||
library.updateLastSyncTime();
|
||||
return library.saveTx()
|
||||
.return();
|
||||
await library.saveTx();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue