From a2eb0de7f5d77b76d634414f649065e19ad8ae55 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 17 Jan 2025 20:13:04 +0700 Subject: [PATCH] QFIX: PG query and SES (#7700) Signed-off-by: Andrey Sobolev --- server/postgres/src/storage.ts | 2 +- services/ses/pod-ses/Dockerfile | 2 ++ services/ses/pod-ses/package.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/postgres/src/storage.ts b/server/postgres/src/storage.ts index a31349b96b9..2286109a4e6 100644 --- a/server/postgres/src/storage.ts +++ b/server/postgres/src/storage.ts @@ -1267,7 +1267,7 @@ abstract class PostgresAdapterBase implements DbAdapter { switch (type) { case 'common': if (Array.isArray(val) && val.includes(null)) { - res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL)`) + res.push(`(${tkey} = ANY(${vars.addArray(val, inferType(val))})) OR ${tkey} IS NULL`) } else { if (val.length > 0) { res.push(`${tkey} = ANY(${vars.addArray(val, inferType(val))})`) diff --git a/services/ses/pod-ses/Dockerfile b/services/ses/pod-ses/Dockerfile index 59d4d238433..93096743093 100644 --- a/services/ses/pod-ses/Dockerfile +++ b/services/ses/pod-ses/Dockerfile @@ -1,5 +1,7 @@ FROM hardcoreeng/base:v20250113a WORKDIR /usr/src/app +COPY bundle/bundle.js ./ + EXPOSE 8089 CMD [ "node", "bundle.js" ] diff --git a/services/ses/pod-ses/package.json b/services/ses/pod-ses/package.json index 87d233158d7..cc22a6712a4 100644 --- a/services/ses/pod-ses/package.json +++ b/services/ses/pod-ses/package.json @@ -20,6 +20,7 @@ "bundle": "node ../../../common/scripts/esbuild.js", "docker:build": "../../../common/scripts/docker_build.sh hardcoreeng/ses", "docker:staging": "../../../common/scripts/docker_tag.sh hardcoreeng/ses staging", + "docker:abuild": "docker build -t hardcoreeng/ses . --platform=linux/arm64 && ../../../common/scripts/docker_tag_push.sh hardcoreeng/ses", "docker:push": "../../../common/scripts/docker_tag.sh hardcoreeng/ses", "run-local": "cross-env SOURCE=no-reply@bold.ru ts-node src/index.ts", "format": "format src",