We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411daf4 commit 0e11a7fCopy full SHA for 0e11a7f
src/ParseServer.js
@@ -174,9 +174,13 @@ class ParseServer {
174
const pushQueueOptions = pushOptions.queueOptions || {};
175
if (pushOptions.queueOptions) {
176
delete pushOptions.queueOptions;
177
+ }
178
+ var tmpAdapter=pushOptions.adapter;
179
+ if (pushOptions.adapter && typeof pushOptions.adapter === "string") {
180
+ delete pushOptions.adapter;
181
}
182
// Pass the push options too as it works with the default
- const pushAdapter = loadAdapter(pushOptions && pushOptions.adapter, ParsePushAdapter, pushOptions);
183
+ const pushAdapter = loadAdapter(pushOptions && tmpAdapter, ParsePushAdapter, pushOptions);
184
// We pass the options and the base class for the adatper,
185
// Note that passing an instance would work too
186
const pushController = new PushController();
0 commit comments