mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Migrate Zotero.Promise#return() in libraries.js
This commit is contained in:
parent
64a2237fb3
commit
1c4d2b84e0
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