Skip to content

Commit 9e43baa

Browse files
authored
fix: types (#6805)
1 parent 37a9e10 commit 9e43baa

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

integration-tests/testkit/seed.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -779,20 +779,24 @@ export function initSeed() {
779779
const check = async () => {
780780
const statsResult = await readOperationsStats(
781781
{
782-
organizationSlug: organization.slug,
783-
projectSlug: project.slug,
784-
targetSlug: (opts?.target ?? target).slug,
785-
period: {
786-
from,
787-
to,
782+
bySelector: {
783+
organizationSlug: organization.slug,
784+
projectSlug: project.slug,
785+
targetSlug: (opts?.target ?? target).slug,
788786
},
789787
},
788+
{
789+
from,
790+
to,
791+
},
792+
{},
790793
ownerToken,
791794
).then(r => r.expectNoGraphQLErrors());
792-
const totalRequests = statsResult.operationsStats.operations.nodes.reduce(
793-
(total, node) => total + node.count,
794-
0,
795-
);
795+
const totalRequests =
796+
statsResult.target?.operationsStats.operations.edges.reduce(
797+
(total, edge) => total + edge.node.count,
798+
0,
799+
);
796800
return totalRequests == n;
797801
};
798802

0 commit comments

Comments
 (0)