Skip to content

Commit 5793d09

Browse files
committed
fix: invalid push adapter type
1 parent c7e8f6a commit 5793d09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Controllers/AdaptableController.js

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class AdaptableController {
6060
}, {});
6161

6262
if (Object.keys(mismatches).length > 0) {
63+
console.error("Adapter prototype don't match expected prototype", mismatches);
6364
throw new Error("Adapter prototype don't match expected prototype", adapter, mismatches);
6465
}
6566
}

src/Controllers/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export async function getPushController(options: ParseServerOptions): PushContro
182182
const ParsePushAdapter = await loadModule('@parse/push-adapter');
183183
const pushAdapter = loadAdapter(
184184
pushOptions && pushOptions.adapter,
185-
ParsePushAdapter,
185+
ParsePushAdapter.default,
186186
pushOptions
187187
);
188188
// We pass the options and the base class for the adatper,

0 commit comments

Comments
 (0)