From 846b44659f8b3edec5bb439b5a0dc8bfd3b13fe1 Mon Sep 17 00:00:00 2001 From: Francesco Durighetto Date: Fri, 21 Feb 2025 16:05:53 +0100 Subject: [PATCH] bugfix on the schema cache --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 06f1014..6d49b75 100644 --- a/src/client.js +++ b/src/client.js @@ -896,7 +896,7 @@ export default class PubSubApiClient { if (!schema) { try { schema = await this.#fetchEventSchemaFromIdWithClient(schemaId); - this.#schemas.set(schema.schema, schema); + this.#schemas.set(schema.id, schema); } catch (error) { throw new Error(`Failed to load schema with ID ${schemaId}`, { cause: error