Skip to content

Commit

Permalink
fix(message/aggregate): Remove keys query param when no value is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed May 31, 2024
1 parent cb0249a commit 7b65087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/message/src/aggregate/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AggregateMessageClient {
const response = await axios.get<AggregateGetResponse<T>>(`${this.apiServer}/api/v0/aggregates/${address}.json`, {
socketPath: getSocketPath(),
params: {
keys: keys ? keys.join(',') : undefined,
keys: keys.length > 0 ? keys.join(',') : undefined,
},
})

Expand Down

0 comments on commit 7b65087

Please sign in to comment.