From e06b6cb13e6916f71cbb9ac9cb421f3d64d8f8ed Mon Sep 17 00:00:00 2001 From: sebastientromp Date: Sat, 19 Feb 2022 19:26:45 +0100 Subject: [PATCH] update for 22.4 --- src/stats-builder.ts | 6 +++--- src/trigger-sync-reprocess.ts | 6 +++--- template.yaml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/stats-builder.ts b/src/stats-builder.ts index e490bae..f7e2097 100644 --- a/src/stats-builder.ts +++ b/src/stats-builder.ts @@ -20,9 +20,9 @@ export class StatsBuilder { return; } - if (parseInt(message.buildNumber) > 130051) { - return; - } + // if (parseInt(message.buildNumber) > 130051) { + // return; + // } if (verbose) { console.log('sync', message); diff --git a/src/trigger-sync-reprocess.ts b/src/trigger-sync-reprocess.ts index 3562a31..8b3b345 100644 --- a/src/trigger-sync-reprocess.ts +++ b/src/trigger-sync-reprocess.ts @@ -9,8 +9,8 @@ const sns = new Sns(); // [1]: https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/ export default async (event): Promise => { const mysql = await getConnection(); - const startId = 189123703; - const endId = 189338884; + const startId = 199703340; + const endId = 199896855; const query = ` SELECT * FROM replay_summary where gameMode = 'ranked' @@ -26,7 +26,7 @@ export default async (event): Promise => { const chunks = chunk(results, 200); for (const chunk of chunks) { - console.log('sending chunk'); + // console.log('sending chunk'); await Promise.all(chunk.map(reviewToNotify => sns.notifySyncReprocess(reviewToNotify))); } diff --git a/template.yaml b/template.yaml index 2b76348..395ba2b 100644 --- a/template.yaml +++ b/template.yaml @@ -40,7 +40,7 @@ Resources: Type: AWS::Serverless::Function Properties: Handler: process-sync-stats.default - Runtime: nodejs10.x + Runtime: nodejs12.x CodeUri: ./dist/process-sync-stats Timeout: 60 # Because of BG games MemorySize: 384 # Increase memory to be able to handle big games like BGS @@ -81,7 +81,7 @@ Resources: Properties: Handler: sync-data-reprocess.default # Runtime: nodejs8.10 # Used for dev - Runtime: nodejs10.x + Runtime: nodejs12.x Timeout: 10 CodeUri: ./dist/sync-data-reprocess MemorySize: 384 # Increase memory to be able to handle big games like BGS