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 52b07f6Copy full SHA for 52b07f6
src/ParseServer.js
@@ -175,8 +175,12 @@ class ParseServer {
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