This commit is contained in:
Quan HL
2023-07-28 21:14:07 +07:00
parent 9211c9461c
commit 66388617e6
+1 -1
View File
@@ -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');