Skip to content

Commit

Permalink
fix: invalid push adapter type
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 10, 2025
1 parent c7e8f6a commit 5793d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Controllers/AdaptableController.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class AdaptableController {
}, {});

if (Object.keys(mismatches).length > 0) {
console.error("Adapter prototype don't match expected prototype", mismatches);
throw new Error("Adapter prototype don't match expected prototype", adapter, mismatches);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export async function getPushController(options: ParseServerOptions): PushContro
const ParsePushAdapter = await loadModule('@parse/push-adapter');
const pushAdapter = loadAdapter(
pushOptions && pushOptions.adapter,
ParsePushAdapter,
ParsePushAdapter.default,
pushOptions
);
// We pass the options and the base class for the adatper,
Expand Down

0 comments on commit 5793d09

Please sign in to comment.