setInterval(async function() {
newDate = new Date().toLocaleTimeString();
if(newDate == "22:45:30") {
let chats = await Chat.find({ test: true })
chats.map(async x=> {
chat = await Chat.findOne({ id: x.id })
await Chat.updateOne({id: x.id}, {limitpop: 0});
await Chat.updateOne({id: x.id}, {limitvivod: 0});
});
}
console.log(newDate)
}, 1000)