From 159ebb42832c9a5e68ca1a64c2e387a56804bd08 Mon Sep 17 00:00:00 2001 From: Jonathan Gramain Date: Sat, 30 Jun 2018 19:20:55 -0700 Subject: [PATCH] bugfix: ZENKO-433 fix when 'params' is undefined --- lib/storage/metadata/mongoclient/MongoClientInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/metadata/mongoclient/MongoClientInterface.js b/lib/storage/metadata/mongoclient/MongoClientInterface.js index 0f67e618a..c30c09fb0 100644 --- a/lib/storage/metadata/mongoclient/MongoClientInterface.js +++ b/lib/storage/metadata/mongoclient/MongoClientInterface.js @@ -578,7 +578,7 @@ class MongoClientInterface { const c = this.getCollection(bucketName); const countParams = { objName, - versionId: params.versionId, + versionId: params && params.versionId, collectionName: bucketName, }; const isUpdate = params && params.versionId;