Skip to content

Commit

Permalink
fix: fixed export
Browse files Browse the repository at this point in the history
  • Loading branch information
akp111 committed Jun 6, 2024
1 parent 2254062 commit c03c161
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/restapi/src/lib/channels/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ export * from './subscribe';
export * from './subscribeV2';
export * from './unsubscribe';
export * from './unsubscribeV2';
export {subscribeV3} from "./subscribeV3";
export {unsubscribeV3} from "./unsubscribeV3";

2 changes: 1 addition & 1 deletion packages/restapi/src/lib/channels/subscribeV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type SubscribeOptionsV2Type = {
onError?: (err: Error) => void;
};

export const subscribeV2 = async (options: SubscribeOptionsV2Type) => {
export const subscribeV3 = async (options: SubscribeOptionsV2Type) => {
const {
signer,
channelAddress,
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/channels/unsubscribeV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type UnSubscribeOptionsV2Type = {
onError?: (err: Error) => void;
};

export const unsubscribeV2 = async (options: UnSubscribeOptionsV2Type) => {
export const unsubscribeV3 = async (options: UnSubscribeOptionsV2Type) => {
const {
signer,
channelAddress,
Expand Down
4 changes: 2 additions & 2 deletions packages/restapi/src/lib/pushNotification/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class Notification extends PushNotificationBaseClass {
);
// convert the setting to minimal version
const minimalSetting = this.getMinimalUserSetting(settings!);
return await PUSH_CHANNEL.subscribeV2({
return await PUSH_CHANNEL.subscribeV3({
signer: this.signer!,
channelAddress: channel,
userAddress: userAddressInCaip,
Expand Down Expand Up @@ -218,7 +218,7 @@ export class Notification extends PushNotificationBaseClass {
this.account!,
parseInt(caipDetail?.networkId as string)
);
return await PUSH_CHANNEL.unsubscribeV2({
return await PUSH_CHANNEL.unsubscribeV3({
signer: this.signer!,
channelAddress: channel,
userAddress: userAddressInCaip,
Expand Down

0 comments on commit c03c161

Please sign in to comment.