diff --git a/services/history-v1/storage/lib/backupArchiver.mjs b/services/history-v1/storage/lib/backupArchiver.mjs index a10284070e..c6f0e3755d 100644 --- a/services/history-v1/storage/lib/backupArchiver.mjs +++ b/services/history-v1/storage/lib/backupArchiver.mjs @@ -49,10 +49,18 @@ class BackupBlobStore { * Required for BlobStore interface - not supported. * * @template T + * @param {string} hash * @return {Promise} */ - async getObject() { - throw new Error('Not implemented') + async getObject(hash) { + try { + const stream = await this.getStream(hash) + const buffer = await streams.readStreamToBuffer(stream) + return JSON.parse(buffer.toString()) + } catch (err) { + logger.warn({ err, hash }, 'Failed to fetch chunk blob') + throw err + } } /**