diff --git a/lib/server/plugnplay.ts b/lib/server/plugnplay.ts index 9bce052..dfd1538 100644 --- a/lib/server/plugnplay.ts +++ b/lib/server/plugnplay.ts @@ -9,11 +9,11 @@ export default async function () { Challenge; Biffno; Ficmas; - log.debug(mongoose.connection.modelNames()); // mongoose.set("debug", true); mongoose.set("overwriteModels", true); // console.log(process.env); try { + log.debug("before ->", +mongoose.connection.modelNames().toString()); await mongoose.connect(beep.database.uri, { auth: { username: beep.database.user, @@ -29,4 +29,5 @@ export default async function () { message: "Could not connect to the database.", }); } + log.debug(mongoose.connection.modelNames()); }