Skip to content

Commit 799fff0

Browse files
authored
Merge pull request #61 from francescod-subbyx/main
fix: schema cache set
2 parents 31f2a10 + 846b446 commit 799fff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ export default class PubSubApiClient {
896896
if (!schema) {
897897
try {
898898
schema = await this.#fetchEventSchemaFromIdWithClient(schemaId);
899-
this.#schemas.set(schema.schema, schema);
899+
this.#schemas.set(schema.id, schema);
900900
} catch (error) {
901901
throw new Error(`Failed to load schema with ID ${schemaId}`, {
902902
cause: error

0 commit comments

Comments
 (0)