Fix push sync for group libraries
This commit is contained in:
parent
cddc84ffe3
commit
41413b1ab2
2 changed files with 3 additions and 3 deletions
|
@ -121,11 +121,11 @@ Zotero.Sync.Streamer_Module.prototype = {
|
|||
if (library) {
|
||||
// Ignore if skipped library
|
||||
let skipped = Zotero.Sync.Data.Local.getSkippedLibraries();
|
||||
if (skipped.includes(library.id)) return;
|
||||
if (skipped.includes(library.libraryID)) return;
|
||||
|
||||
yield Zotero.Sync.Runner.sync({
|
||||
background: true,
|
||||
libraries: [library.id]
|
||||
libraries: [library.libraryID]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ Zotero.URI = new function () {
|
|||
}
|
||||
return Zotero.Libraries.userLibrary;
|
||||
}
|
||||
matches = event.data.topic.match(/^\/groups\/(\d+)/);
|
||||
matches = path.match(/^\/groups\/(\d+)/);
|
||||
if (matches) {
|
||||
let groupID = matches[1];
|
||||
return Zotero.Groups.get(groupID);
|
||||
|
|
Loading…
Reference in a new issue