Fix push sync for group libraries

This commit is contained in:
Dan Stillman 2017-01-23 06:45:50 -05:00
parent cddc84ffe3
commit 41413b1ab2
2 changed files with 3 additions and 3 deletions

View file

@ -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]
});
}
}

View file

@ -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);