From ed601cc187d4b427ea0e9b975570060a19a855c2 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 22 Feb 2024 11:41:49 +0000 Subject: [PATCH] Refactor AnalyticsDatabaseService and Statement classes --- CommonServer/Services/AnalyticsDatabaseService.ts | 1 - CommonServer/Utils/AnalyticsDatabase/Statement.ts | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CommonServer/Services/AnalyticsDatabaseService.ts b/CommonServer/Services/AnalyticsDatabaseService.ts index d0d4055979..77c14e5c0f 100644 --- a/CommonServer/Services/AnalyticsDatabaseService.ts +++ b/CommonServer/Services/AnalyticsDatabaseService.ts @@ -331,7 +331,6 @@ export default class AnalyticsDatabaseService< `); /* eslint-enable prettier/prettier */ - logger.info(`${this.model.tableName} Find Statement`); logger.info(statement); diff --git a/CommonServer/Utils/AnalyticsDatabase/Statement.ts b/CommonServer/Utils/AnalyticsDatabase/Statement.ts index 9803770b0f..213c9ea2b9 100644 --- a/CommonServer/Utils/AnalyticsDatabase/Statement.ts +++ b/CommonServer/Utils/AnalyticsDatabase/Statement.ts @@ -103,11 +103,9 @@ export class Statement implements BaseQueryParams { finalValue = v.value.value; } else if (v.value instanceof Includes) { if (v.type === TableColumnType.Text) { - finalValue = v.value.values - .map((val: string | ObjectID) => { - return `'${val.toString()}'`; - }) - .join(','); + finalValue = v.value.values.map((val: string | ObjectID) => { + return `'${val.toString()}'`; + }); } else { finalValue = v.value.values; }