mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 11:16:10 +02:00
* Very minor
This commit is contained in:
parent
d71cae5c37
commit
990dffe880
4 changed files with 28 additions and 13 deletions
|
@ -318,8 +318,12 @@ User.prototype.persistProperty = function(propName, propValue, cb) {
|
|||
|
||||
userDb.run(
|
||||
'REPLACE INTO user_property (user_id, prop_name, prop_value) ' +
|
||||
'VALUES (?, ?, ?);', [ this.userId, propName, propValue ], function ran(err) {
|
||||
cb(err);
|
||||
'VALUES (?, ?, ?);',
|
||||
[ this.userId, propName, propValue ],
|
||||
function ran(err) {
|
||||
if(cb) {
|
||||
cb(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue