Skip to content

Node.js based forum software built for the modern web

add error message for testing

Barış Soner Uşaklı052f1f223236
diff --git a/src/database/mongo/hash.js b/src/database/mongo/hash.js
index ec9cfa051b..cfa46f00a3 100644
--- a/src/database/mongo/hash.js
+++ b/src/database/mongo/hash.js
@@ -255,6 +255,7 @@ module.exports = function (module) {
// https://github.com/NodeBB/NodeBB/issues/4467
// https://jira.mongodb.org/browse/SERVER-14322
// https://docs.mongodb.org/manual/reference/command/findAndModify/#upsert-and-unique-index
+ console.log('test', err.message);
if (err && err.message.startsWith('E11000 duplicate key error')) {
return await module.incrObjectFieldBy(key, field, value);
}