From 8c4c79f327580a3cd4e655d9ae9c6666cac240dd Mon Sep 17 00:00:00 2001 From: Sameeksha Gupta <136142214+sameekshaagupta@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:32:00 +0530 Subject: [PATCH] Update update.js --- update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.js b/update.js index 02273fa..ef6d235 100644 --- a/update.js +++ b/update.js @@ -2,7 +2,7 @@ const dbConnect= require('./mongodb') const updateData=async ()=>{ let data = await dbConnect(); - let result = await data.update( + let result = await data.updateOne( { name:'max 5'}, { $set:{name:'max pro 5', price:1000}