Skip to content

Commit c50eeb7

Browse files
authored
fix: since and until params for getInbox (#72)
1 parent 1278f0b commit c50eeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clients/inbox-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export class InboxClient extends BaseClient {
5858
workspace_id: args.workspaceId,
5959
}
6060

61-
if (args.since) params.since_ts_or_obj_idx = Math.floor(args.since.getTime() / 1000)
62-
if (args.until) params.until_ts_or_obj_idx = Math.floor(args.until.getTime() / 1000)
61+
if (args.since) params.newer_than_ts = Math.floor(args.since.getTime() / 1000)
62+
if (args.until) params.older_than_ts = Math.floor(args.until.getTime() / 1000)
6363
if (args.limit) params.limit = args.limit
6464
if (args.cursor) params.cursor = args.cursor
6565

0 commit comments

Comments
 (0)