Fix a couple connector server endpoint init() response values

This commit is contained in:
Dan Stillman 2019-07-16 00:58:01 -04:00
parent 7b9d404c42
commit 5dd64a5f4c
2 changed files with 4 additions and 3 deletions

View file

@ -1067,9 +1067,9 @@ Zotero.Server.Connector.DelaySync.prototype = {
supportedMethods: ["POST"],
permitBookmarklet: true,
init: async function (requestData) {
init: function (requestData) {
Zotero.Sync.Runner.delaySync(10000);
return [204];
return 204;
}
};

View file

@ -82,7 +82,8 @@ Zotero.Server.Endpoints['/connector/sendToBack'].prototype = {
supportedMethods: ["POST", "GET"],
supportedDataTypes: ["application/json"],
permitBookmarklet: true,
init: function() {
init: function (requestData) {
Zotero.Utilities.Internal.sendToBack();
return 200;
},
};