Skip to content

Commit

Permalink
feat(core): Add currencyCode option to RequestContextService.create (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
asonnleitner authored Jul 11, 2023
1 parent 4a5c619 commit 2f336a7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ export class RequestContextService {
apiType: ApiType;
channelOrToken?: Channel | string;
languageCode?: LanguageCode;
currencyCode?: CurrencyCode;
user?: User;
activeOrderId?: ID;
}): Promise<RequestContext> {
const { req, apiType, channelOrToken, languageCode, user, activeOrderId } = config;
const { req, apiType, channelOrToken, languageCode, currencyCode, user, activeOrderId } = config;
let channel: Channel;
if (channelOrToken instanceof Channel) {
channel = channelOrToken;
Expand Down Expand Up @@ -73,6 +74,7 @@ export class RequestContextService {
apiType,
channel,
languageCode,
currencyCode,
session,
isAuthorized: true,
authorizedAsOwnerOnly: false,
Expand Down

0 comments on commit 2f336a7

Please sign in to comment.