Skip to content

Commit

Permalink
fix(message/aggregate): Remove keys query param when no value is pass…
Browse files Browse the repository at this point in the history
…ed (#177)
  • Loading branch information
RezaRahemtola authored Jun 1, 2024
1 parent cb0249a commit 2dfa987
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 2dfa987

Please sign in to comment.