Fix a couple connector server endpoint init() response values
This commit is contained in:
parent
7b9d404c42
commit
5dd64a5f4c
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue