Skip to content

Commit a53ecec

Browse files
committed
track seenQueries later
1 parent cc6da94 commit a53ecec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ai/src/mocking/GrowingSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ export class GrowingSchema {
7373

7474
try {
7575
if (!this.seenQueries.has(query)) {
76-
this.seenQueries.add(query);
7776
this.mergeQueryIntoSchema(operation, response);
7877
}
7978

8079
this.validateResponseAgainstSchema(query, operation, response);
80+
this.seenQueries.add(query);
8181
} catch (e) {
8282
this.schema = previousSchema;
8383
throw e;

0 commit comments

Comments
 (0)