refactor(server/middleware): remove mongoose debug flag, set overwriteModels to true

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2023-12-06 21:25:47 -05:00
parent 4ce4693e56
commit 3a1ddf55e4
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -10,7 +10,8 @@ export default async function () {
Biffno; Biffno;
Ficmas; Ficmas;
log.debug(mongoose.connection.modelNames()); log.debug(mongoose.connection.modelNames());
mongoose.set("debug", true); // mongoose.set("debug", true);
mongoose.set("overwriteModels", true);
try { try {
await mongoose.connect(beep.database.uri); await mongoose.connect(beep.database.uri);
// if (!!!mongoose.connections.length) // if (!!!mongoose.connections.length)