diff --git a/packages/restapi/src/lib/pushapi/PushAPI.ts b/packages/restapi/src/lib/pushapi/PushAPI.ts index 162d40a85..429b3aac3 100644 --- a/packages/restapi/src/lib/pushapi/PushAPI.ts +++ b/packages/restapi/src/lib/pushapi/PushAPI.ts @@ -73,10 +73,7 @@ export class PushAPI { static async initialize( signer: SignerType, - options?: PushAPIInitializeProps, - version?: typeof Constants.ENC_TYPE_V1 | typeof Constants.ENC_TYPE_V3, - versionMeta?: { NFTPGP_V1?: { password: string } }, - autoUpgrade?: boolean + options?: PushAPIInitializeProps ): Promise { try { // Default options @@ -97,10 +94,12 @@ export class PushAPI { const settings = { ...defaultOptions, ...options, - version: version || defaultOptions.version, - versionMeta: versionMeta || defaultOptions.versionMeta, + version: options?.version || defaultOptions.version, + versionMeta: options?.versionMeta || defaultOptions.versionMeta, autoUpgrade: - autoUpgrade !== undefined ? autoUpgrade : defaultOptions.autoUpgrade, + options?.autoUpgrade !== undefined + ? options?.autoUpgrade + : defaultOptions.autoUpgrade, streamOptions: { ...defaultOptions.streamOptions, ...(options?.streamOptions ?? {}), diff --git a/packages/restapi/tests/lib/chat/send.test.ts b/packages/restapi/tests/lib/chat/send.test.ts index 5aeb21512..88dba0595 100644 --- a/packages/restapi/tests/lib/chat/send.test.ts +++ b/packages/restapi/tests/lib/chat/send.test.ts @@ -19,7 +19,7 @@ import { CHAT } from '../../../src/lib/types/messageTypes'; chai.use(chaiAsPromised); const _env = Constants.ENV.DEV; -describe.only('PushAPI.chat.send', () => { +describe('PushAPI.chat.send', () => { const provider = ethers.getDefaultProvider(5); let _signer1: any; let walletAddress1: string;