From 66388617e6f9416d0862a9913385568fec9f459e Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 28 Jul 2023 21:14:07 +0700 Subject: [PATCH] fix --- lib/record/google-storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/record/google-storage.js b/lib/record/google-storage.js index 499b7232..35dd9fce 100644 --- a/lib/record/google-storage.js +++ b/lib/record/google-storage.js @@ -30,7 +30,7 @@ class GoogleStorageUploadStream extends Writable { async _addMetadata() { try { - await this.gcsFile.setMetadata(this.metadata); + await this.gcsFile.setMetadata({metadata: this.metadata}); this.logger.info('Google storage Upload and metadata setting completed.'); } catch (err) { this.logger.error(err, 'Google storage An error occurred while setting metadata');