1
0
Fork 0

should be setINterval not settimeout

refactor/models
Matthew 2019-10-28 00:34:42 -04:00
parent 79dea2e413
commit 92f2ca71da
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { Client } from '..';
import { RichEmbed } from '../class';
export default function checkLock(client: Client) {
setTimeout(async () => {
setInterval(async () => {
try {
const moderations = await client.db.Moderation.find();
moderations.forEach(async (moderation) => {