Merge remote-tracking branch 'origin/develop' into sabrecat/mongodb-upgrade

# Conflicts:
#	config.json.example
#	package-lock.json
#	package.json
This commit is contained in:
negue
2025-11-09 18:35:47 +01:00
1182 changed files with 46571 additions and 31020 deletions

View File

@@ -75,15 +75,10 @@ export async function getDocument (collectionName, doc) {
}
before(done => {
mongoose.connection.on('open', err => {
if (err) return done(err);
return resetHabiticaDB()
.then(() => {
done();
})
.catch(error => {
throw error;
});
mongoose.connection.once('open', async err => {
if (err) throw err;
await resetHabiticaDB();
done();
});
});