diff options
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" ] ] }); |
