From b6b551c72b2575ac2b59a4b433ea9457b44b810e Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Tue, 22 Nov 2022 17:51:59 -0300 Subject: [PATCH] chore: renamed variables for promise await --- packages/mongo-async/mongo_driver.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mongo-async/mongo_driver.js b/packages/mongo-async/mongo_driver.js index ae1f477c7c..14977cfa1e 100644 --- a/packages/mongo-async/mongo_driver.js +++ b/packages/mongo-async/mongo_driver.js @@ -848,8 +848,8 @@ MongoConnection.prototype.createIndex = async function (collectionName, index, console.dir(index) const p = new Promise(async (resolve, reject) => { try { - const j = await collection.createIndex(index, options) - resolve(j) + const i = await collection.createIndex(index, options) + resolve(i) } catch (e) { reject(e); } @@ -867,8 +867,8 @@ MongoConnection.prototype._dropIndex = async function (collectionName, index) { var collection = self.rawCollection(collectionName); const p = new Promise(async (resolve, reject) => { try { - const k = await collection.dropIndex(index) - resolve(k) + const i = await collection.dropIndex(index) + resolve(i) } catch (e) { reject(e); }