forked from engineering/cloudservices
should be setINterval not settimeout
parent
79dea2e413
commit
92f2ca71da
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue