File tree Expand file tree Collapse file tree
platforms/enotary/src/lib/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,16 +165,14 @@ class EvaultService {
165165 let afterCursor : string | null = null ;
166166
167167 do {
168- const response = await client . request < BindingDocumentsResponse > (
168+ const res : BindingDocumentsResponse = await client . request < BindingDocumentsResponse > (
169169 BINDING_DOCUMENTS_QUERY ,
170170 { first : 100 , after : afterCursor ?? undefined } ,
171171 ) ;
172- allEdges . push ( ...response . bindingDocuments . edges ) ;
173- if ( response . bindingDocuments . pageInfo . hasNextPage ) {
174- afterCursor = response . bindingDocuments . pageInfo . endCursor ;
175- } else {
176- afterCursor = null ;
177- }
172+ allEdges . push ( ...res . bindingDocuments . edges ) ;
173+ afterCursor = res . bindingDocuments . pageInfo . hasNextPage
174+ ? res . bindingDocuments . pageInfo . endCursor
175+ : null ;
178176 } while ( afterCursor !== null ) ;
179177
180178 const documents : BindingDocument [ ] = allEdges
You can’t perform that action at this time.
0 commit comments