workaround for mongodb being wack
This commit is contained in:
parent
5bf7852f22
commit
51fb5dc25e
1 changed files with 5 additions and 0 deletions
|
@ -267,6 +267,11 @@ const notifyPublicServers = async () => {
|
|||
try {
|
||||
logger.info(`Sending notification to owner of server ${serverConfig.id}`);
|
||||
|
||||
if (serverConfig.discoverAutospamNotify) {
|
||||
logger.warn('This server already received the message');
|
||||
continue;
|
||||
}
|
||||
|
||||
await dbs.SERVERS.update(
|
||||
{ id: serverConfig.id },
|
||||
{ $set: { discoverAutospamNotify: true, antispamEnabled: true, allowBlacklistedUsers: false } },
|
||||
|
|
Loading…
Reference in a new issue