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}