From 015b50bbbbd33585f9800eac3226c0f81ed32568 Mon Sep 17 00:00:00 2001 From: Sid Sahoo Date: Thu, 10 Oct 2024 18:55:02 +0000 Subject: [PATCH] Address review comments --- services/ad-tech/package.json | 2 +- services/ad-tech/src/controllers/report-store.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/ad-tech/package.json b/services/ad-tech/package.json index f57180ff..0857bcde 100644 --- a/services/ad-tech/package.json +++ b/services/ad-tech/package.json @@ -8,7 +8,7 @@ "start": "npm run build && node ./build/main.js", "build": "tsc && cp -r src/views build/", "ncu": "npx npm-check-updates -u", - "fmt": "prettier --write ." + "fmt": "pre-commit run --all-files" }, "dependencies": { "cbor": "^9.0.2", diff --git a/services/ad-tech/src/controllers/report-store.ts b/services/ad-tech/src/controllers/report-store.ts index 427e20f1..af096803 100644 --- a/services/ad-tech/src/controllers/report-store.ts +++ b/services/ad-tech/src/controllers/report-store.ts @@ -46,6 +46,7 @@ export const ReportStore = (() => { /** Add a new report to the in-memory storage. */ const addReport = (report: Report) => { + // TODO: Consider partitioning by use-case. Reports.set(`${report.category}||${report.timestamp}`, report); };