use model events to handle stats notifications. not perfect, need to

fix handling of "undo exp/gp" operation
This commit is contained in:
Tyler Renelle
2012-09-24 08:48:05 -04:00
parent 0ba7ccd370
commit d929905c48
6 changed files with 95 additions and 59 deletions

View File

@@ -12,7 +12,7 @@ module.exports = function(expressApp, root, derby) {
if (err || !user.get()) {
return;
}
scoring.setUser(user);
scoring.setModel(model);
return scoring.score({
direction: 'up'
});
@@ -27,7 +27,7 @@ module.exports = function(expressApp, root, derby) {
if (err || !user.get()) {
return;
}
scoring.setUser(user);
scoring.setModel(model);
return scoring.score({
direction: 'down'
});