fix(settings): persist every SMS template variable on save

Mongoose Mixed updates were dropping extra invoiceCreated variables after a successful save.
This commit is contained in:
2026-08-15 22:55:54 +03:30
parent d3190a8729
commit 366cd41bb7
5 changed files with 176 additions and 93 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ const settingSchema = new mongoose.Schema({
default: {}
}
}, {
timestamps: true
timestamps: true,
minimize: false
});
const Setting = mongoose.model('Setting', settingSchema);