refactor(server/middleware): log model names twice (before and after connection)
This commit is contained in:
parent
c467afc0c8
commit
ae10a295d4
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user