We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
?? []
1 parent 9f6c62f commit d84c9ceCopy full SHA for d84c9ce
packages/data/src/subgraph.ts
@@ -209,7 +209,7 @@ export default class SemaphoreSubgraph {
209
*/
210
async getGroupMembers(groupId: string): Promise<string[]> {
211
const group = await this.getGroup(groupId, { members: true }) // parameters are checked inside getGroup
212
- return group.members ?? []
+ return group.members!
213
}
214
215
/**
@@ -219,7 +219,7 @@ export default class SemaphoreSubgraph {
219
220
async getGroupValidatedProofs(groupId: string): Promise<any[]> {
221
const group = await this.getGroup(groupId, { validatedProofs: true }) // parameters are checked inside getGroup
222
- return group.validatedProofs ?? []
+ return group.validatedProofs!
223
224
225
0 commit comments