diff --git a/packages/message/src/aggregate/impl.ts b/packages/message/src/aggregate/impl.ts index 38c2fbae..3963a2bb 100644 --- a/packages/message/src/aggregate/impl.ts +++ b/packages/message/src/aggregate/impl.ts @@ -31,7 +31,7 @@ export class AggregateMessageClient { const response = await axios.get>(`${this.apiServer}/api/v0/aggregates/${address}.json`, { socketPath: getSocketPath(), params: { - keys: keys ? keys.join(',') : undefined, + keys: keys.length > 0 ? keys.join(',') : undefined, }, })