Skip to content

Commit

Permalink
fix: bug fix (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 authored Nov 27, 2023
1 parent e5e7a45 commit d1f0c50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/restapi/src/lib/pushapi/PushAPI.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Constants, { ENV } from '../constants';
import { SignerType, ProgressHookType } from '../types';
import { PushAPIInitializeProps } from './pushAPITypes';
import { InfoOptions, PushAPIInitializeProps } from './pushAPITypes';
import * as PUSH_USER from '../user';
import * as PUSH_CHAT from '../chat';
import { getAccountAddress, getWallet } from '../chat/helpers';
Expand Down Expand Up @@ -231,9 +231,10 @@ export class PushAPI {
return this.stream;
}

async info() {
async info(options?: InfoOptions) {
const accountToUse = options?.overrideAccount || this.account;
return await PUSH_USER.get({
account: this.account,
account: accountToUse,
env: this.env,
});
}
Expand Down

0 comments on commit d1f0c50

Please sign in to comment.