From a8d021771f4ab86d60923d22f846ac3193c2aa85 Mon Sep 17 00:00:00 2001 From: Xueying Wang Date: Fri, 20 Dec 2024 13:21:16 +0100 Subject: [PATCH] fix legacy storage rpc --- packages/server/src/services/networking/client/archive.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/server/src/services/networking/client/archive.ts b/packages/server/src/services/networking/client/archive.ts index f681d220..ceefb92b 100644 --- a/packages/server/src/services/networking/client/archive.ts +++ b/packages/server/src/services/networking/client/archive.ts @@ -264,12 +264,8 @@ export class ArchiveClient extends EventEmitter implements ApiClient { async #getEvents(hash: string) { try { - const response = await this.#request< - { result: [{ key: string; value: string }] }, - [hash: string, items: [{ key: string; type: string }], null] - >('archive_unstable_storage', [hash, [{ key: this.ctx.events.key, type: 'value' }], null]) + const eventsData = await this.getStorage(this.ctx.events.key, hash) - const eventsData = response.result?.[0]?.value if (!eventsData) { return [] }