* Initial work on moving to JSON configured Message Areas (vs ID's in SQLite). This will be applied to user groups, and other types as well such that JSON can simply be edited in config.json

* Hopefully better/proper merge of config.js + config.json => config
This commit is contained in:
Bryan Ashby
2015-08-20 16:35:04 -06:00
parent ec70cc8caa
commit 35de0a2487
4 changed files with 103 additions and 10 deletions

View File

@@ -331,7 +331,8 @@ User.prototype.persistProperty = function(propName, propValue, cb) {
User.prototype.persistProperties = function(properties, cb) {
var self = this;
// :TODO: should probably add/update live properties
// update live props
_.merge(this.properties, properties);
var stmt = userDb.prepare(
'REPLACE INTO user_property (user_id, prop_name, prop_value) ' +