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;
|
Challenge;
|
||||||
Biffno;
|
Biffno;
|
||||||
Ficmas;
|
Ficmas;
|
||||||
log.debug(mongoose.connection.modelNames());
|
|
||||||
// mongoose.set("debug", true);
|
// mongoose.set("debug", true);
|
||||||
mongoose.set("overwriteModels", true);
|
mongoose.set("overwriteModels", true);
|
||||||
// console.log(process.env);
|
// console.log(process.env);
|
||||||
try {
|
try {
|
||||||
|
log.debug("before ->", +mongoose.connection.modelNames().toString());
|
||||||
await mongoose.connect(beep.database.uri, {
|
await mongoose.connect(beep.database.uri, {
|
||||||
auth: {
|
auth: {
|
||||||
username: beep.database.user,
|
username: beep.database.user,
|
||||||
@ -29,4 +29,5 @@ export default async function () {
|
|||||||
message: "Could not connect to the database.",
|
message: "Could not connect to the database.",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
log.debug(mongoose.connection.modelNames());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user