I am getting this error pls help,
`if ("data" in command && "execute" in command) {
commands.push(command.data.toJSON());
//insert/update command in database
try { CommandModel.findOneAndUpdate(
{ name: command.data.name },
{ description: command.data.description },
{ upsert: true, new: true, setDefaultsOnInsert: true, timeout: 30000 }
)
.then(result => {
console.log("Command inserted/updated in database successfully", result)
})
} catch (err) {
console.log(`something went wrong whild updating the command in database ${err}`)
}```