diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-11 10:40:17 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-08-11 10:40:17 +0200 |
| commit | c899f8d0e23e73be6830a07ec90f70a3288bdb89 (patch) | |
| tree | 6880a4a573537ece337dfa61fde52e3f76df6557 /service_crunch.js | |
| parent | bd406fab310831604f1fbce494ef0510c33cca1e (diff) | |
| download | bridge-c899f8d0e23e73be6830a07ec90f70a3288bdb89.tar.gz bridge-c899f8d0e23e73be6830a07ec90f70a3288bdb89.zip | |
don't wipe pp
Diffstat (limited to 'service_crunch.js')
| -rw-r--r-- | service_crunch.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/service_crunch.js b/service_crunch.js index bc067ff..1ea6447 100644 --- a/service_crunch.js +++ b/service_crunch.js @@ -62,11 +62,9 @@ module.exports = class Cruncher extends Service { }); if (last_crunch_r) where.created_at = { $gt: last_crunch_r.updated_at }; - // wipe previous calculations - await db.PlayerPoint.destroy({ where }); // get all participants for this player const participations = await db.Participant.findAll({ - attributes: [ "api_id" ], + attributes: [ "api_id", "created_at" ], where, order: [ ["created_at", "ASC" ] ] }); |
