Skip to content

Commit

Permalink
refactor: add optional to param
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Nov 15, 2024
1 parent 7874eba commit f0c4f74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { jwtDecode } from 'jwt-decode';
import { object, string } from 'yup';
import { inject, injectable } from 'inversify';
import { inject, injectable, optional } from 'inversify';

import { IS_DEVELOPMENT_BUILD } from '../../../utils/common';
import { PromiseQueue } from '../../../utils/promiseQueue';
Expand Down Expand Up @@ -93,7 +93,7 @@ export default class CleengService {
constructor(
@inject(StorageService) storageService: StorageService,
@inject(GET_CUSTOMER_IP) getCustomerIP: GetCustomerIP,
@inject(BROADCAST_CHANNEL) channel?: BroadcastChannel<MessageData>,
@inject(BROADCAST_CHANNEL) @optional() channel?: BroadcastChannel<MessageData>,
) {
this.storageService = storageService;
this.getCustomerIP = getCustomerIP;
Expand Down

0 comments on commit f0c4f74

Please sign in to comment.