Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Do not allow productId to be overridden by params
Browse files Browse the repository at this point in the history
  • Loading branch information
zarathustra323 committed Nov 12, 2021
1 parent 0710774 commit 33c17e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marko-web-omeda/middleware/rapid-identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module.exports = ({
const omedaGraphQLClient = req[omedaGraphQLClientProp];
if (!omedaGraphQLClient) throw new Error(`Unable to find the Omeda GraphQL client on the request using ${omedaGraphQLClientProp}`);
const handler = async (params = {}) => rapidIdentify(omedaGraphQLClient, {
productId,
...params,
productId,
});

req[prop] = handler;
Expand Down

0 comments on commit 33c17e1

Please sign in to comment.