mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
fix profile config pointers
This commit is contained in:
parent
9093a69907
commit
b201c1aaad
@ -12,8 +12,8 @@ var api = function(dbot) {
|
|||||||
if(user){
|
if(user){
|
||||||
this.db.create('profiles', user.id, {
|
this.db.create('profiles', user.id, {
|
||||||
'id': user.id,
|
'id': user.id,
|
||||||
'profile': dbot.config.profile.schema.profile,
|
'profile': this.config.schema.profile,
|
||||||
'preferences': dbot.config.profile.schema.preferences
|
'preferences': this.config.schema.preferences
|
||||||
}, function(err, result){
|
}, function(err, result){
|
||||||
if(err){
|
if(err){
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user