Skip to content

Commit 846b446

Browse files
bugfix on the schema cache
1 parent 31f2a10 commit 846b446

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)