I have a problem related to the Mongoose that I don't really know why it happens, I have used the same function before and if it worked normal...
const TicketsDB = require('./models/TicketsModels.js');
async function DeleteUser(channelid) {
let DeleteTicket = await UsersDB.deleteOne({ChannelID: channelid})
DeleteTicket.save()
return true;
}
Console return: MongooseError: Query was already executed: channels.deleteOne({ ChannelID: '926580957253877810' })