This commit is contained in:
Jack 2021-09-09 17:48:53 +01:00
parent a9b20e6404
commit fefaf84fca

View file

@ -1,7 +1,7 @@
const { mongoDB } = require("../init/mongodb");
async function log(event, message, uid) {
await mongoDB.collection("logs").insertOne({
await mongoDB().collection("logs").insertOne({
timestamp: Date.now(),
uid,
event,