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:
@@ -17,7 +17,8 @@ const settingSchema = new mongoose.Schema({
|
||||
default: {}
|
||||
}
|
||||
}, {
|
||||
timestamps: true
|
||||
timestamps: true,
|
||||
minimize: false
|
||||
});
|
||||
|
||||
const Setting = mongoose.model('Setting', settingSchema);
|
||||
|
||||
Reference in New Issue
Block a user