Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container prepare 2026/10/23 15:16:56 Entrypoint initialization Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container place-scripts 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-0-gpw84 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-1-9pbz6 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-2-v2cfb 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-3-cx497 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-4-r46db 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-5-x4q57 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-6-prqn8 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-7-wp56c 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-9-lv7x7 2026/10/23 15:16:56 Decoded script /tekton/scripts/script-10-x727v Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container working-dir-initializer Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-git-clone git cloning url: https://github.com/greencapitaltrade/pepper.git version refs/pull/1038/head:PR-1038@a86159bfeea409223cf2842b9082d6d0c22cc133 to dir: source Cloning into 'source'... From https://github.com/greencapitaltrade/pepper * [new ref] refs/pull/1038/head -> PR-1038 Switched to branch 'PR-1038' HEAD is now at a86159bfee fix: repair notification regressions and restore server CI checked out revision: refs/pull/1038/head:PR-1038@a86159bfeea409223cf2842b9082d6d0c22cc133 to dir: source Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-git-merge setup git user email jenkins-x@googlegroups.com Using SHAs from PULL_REFS=main:9e0f7f150db2294153ed9041183bf8489f6647ea,1038:a86159bfeea409223cf2842b9082d6d0c22cc133:refs/pull/1038/head using base branch main and base sha 9e0f7f150db2294153ed9041183bf8489f6647ea merging sha: a86159bfeea409223cf2842b9082d6d0c22cc133 Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-jx-variables WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-4182245005 in dir /tmp Cloning into '/tmp/jx-git-4182245005'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-4182245005 about to run: git checkout in dir /tmp/jx-git-4182245005 Your branch is up to date with 'origin/main'. export APP_NAME='pepper' export BRANCH_NAME='PR-1038' export BUILD_NUMBER='2' export DOCKERFILE_PATH='Dockerfile' export DOCKER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export DOCKER_REGISTRY_ORG='greencapitaltrade' export DOMAIN='gc-t.in' about to run: git rev-parse --abbrev-ref HEAD in dir . main export GIT_BRANCH='main' export JENKINS_X_URL='https://dashboard-jx.gc-t.in/greencapitaltrade/pepper/PR-1038/2' export JX_CHART_REPOSITORY='http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080' export KANIKO_FLAGS='--skip-unused-stages --snapshotMode=redo' export MINK_AS='tekton-bot' export MINK_IMAGE='417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/pepper:0.89.0' export NAMESPACE_SUB_DOMAIN='-jx.' export PIPELINE_KIND='pullrequest' export PUSH_CONTAINER_REGISTRY='417755753340.dkr.ecr.ap-south-1.amazonaws.com' export REPO_NAME='pepper' export REPO_OWNER='greencapitaltrade' export VERSION='0.89.0' added variables to file: .jx/variables.sh added variables to file: .jx/variables.sh Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-build-npm-install Get:1 http://deb.debian.org/debian trixie InRelease [140 kB] Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB] Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB] Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9678 kB] Get:5 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm InRelease [151 kB] Get:6 http://deb.debian.org/debian trixie-updates/main amd64 Packages [720 B] Get:7 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [269 kB] Get:8 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-security-proxy bookworm-security InRelease [34.8 kB] Get:9 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm/main amd64 Packages [8790 kB] Get:10 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-security-proxy bookworm-security/main amd64 Packages [355 kB] Fetched 19.5 MB in 1s (15.4 MB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu bzip2 ca-certificates cpp cpp-14 cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu dpkg-dev fakeroot g++ g++-14 g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libexpat1 libfakeroot libffi8 libfile-fcntllock-perl libgcc-14-dev libgdbm-compat4t64 libgdbm6t64 libgomp1 libgpm2 libgprofng0 libhwasan0 libisl23 libitm1 libjansson4 liblocale-gettext-perl liblsan0 libmpc3 libmpfr6 libncursesw6 libperl5.40 libpython3-stdlib libpython3.13-minimal libpython3.13-stdlib libquadmath0 libreadline8t64 libsframe1 libstdc++-14-dev libtsan2 libubsan1 linux-libc-dev make manpages manpages-dev media-types netbase openssl patch perl perl-modules-5.40 python3-minimal python3.13 python3.13-minimal readline-common rpcsvc-proto sq xz-utils Suggested packages: binutils-doc gprofng-gui binutils-gold bzip2-doc cpp-doc gcc-14-locales cpp-14-doc debian-keyring debian-tag2upload-keyring g++-multilib g++-14-multilib gcc-14-doc gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-14-multilib gdb-x86-64-linux-gnu libc-devtools glibc-doc sensible-utils git bzr gdbm-l10n gpm libstdc++-14-doc make-doc man-browser ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl libtap-harness-archive-perl python3-doc python3-tk python3-venv python3.13-venv python3.13-doc binfmt-support readline-doc The following NEW packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 ca-certificates cpp cpp-14 cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu dpkg-dev fakeroot g++ g++-14 g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan8 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libexpat1 libfakeroot libffi8 libfile-fcntllock-perl libgcc-14-dev libgdbm-compat4t64 libgdbm6t64 libgomp1 libgpm2 libgprofng0 libhwasan0 libisl23 libitm1 libjansson4 liblocale-gettext-perl liblsan0 libmpc3 libmpfr6 libncursesw6 libperl5.40 libpython3-stdlib libpython3.13-minimal libpython3.13-stdlib libquadmath0 libreadline8t64 libsframe1 libstdc++-14-dev libtsan2 libubsan1 linux-libc-dev make manpages manpages-dev media-types netbase openssl patch perl perl-modules-5.40 python3 python3-minimal python3.13 python3.13-minimal readline-common rpcsvc-proto sq xz-utils 0 upgraded, 79 newly installed, 0 to remove and 1 not upgraded. Need to get 100 MB of archives. After this operation, 393 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian-security trixie-security/main amd64 libexpat1 amd64 2.9.0-1~deb13u1 [126 kB] Get:2 http://deb.debian.org/debian trixie/main amd64 liblocale-gettext-perl amd64 1.07-7+b1 [15.3 kB] Get:3 http://deb.debian.org/debian trixie/main amd64 libpython3.13-minimal amd64 3.13.5-2+deb13u5 [863 kB] Get:4 http://deb.debian.org/debian trixie/main amd64 python3.13-minimal amd64 3.13.5-2+deb13u5 [2225 kB] Get:5 http://deb.debian.org/debian trixie/main amd64 python3-minimal amd64 3.13.5-1 [27.2 kB] Get:6 http://deb.debian.org/debian trixie/main amd64 media-types all 13.0.0 [29.3 kB] Get:7 http://deb.debian.org/debian trixie/main amd64 netbase all 6.5 [12.4 kB] Get:8 http://deb.debian.org/debian trixie/main amd64 libffi8 amd64 3.4.8-2 [24.1 kB] Get:9 http://deb.debian.org/debian trixie/main amd64 libncursesw6 amd64 6.5+20250216-2 [135 kB] Get:10 http://deb.debian.org/debian trixie/main amd64 readline-common all 8.2-6 [69.4 kB] Get:11 http://deb.debian.org/debian trixie/main amd64 libreadline8t64 amd64 8.2-6 [169 kB] Get:12 http://deb.debian.org/debian trixie/main amd64 libpython3.13-stdlib amd64 3.13.5-2+deb13u5 [1959 kB] Get:13 http://deb.debian.org/debian trixie/main amd64 python3.13 amd64 3.13.5-2+deb13u5 [757 kB] Get:14 http://deb.debian.org/debian trixie/main amd64 libpython3-stdlib amd64 3.13.5-1 [10.2 kB] Get:15 http://deb.debian.org/debian trixie/main amd64 python3 amd64 3.13.5-1 [28.2 kB] Get:16 http://deb.debian.org/debian trixie/main amd64 bzip2 amd64 1.0.8-6 [40.5 kB] Get:17 http://deb.debian.org/debian-security trixie-security/main amd64 openssl amd64 3.5.7-1~deb13u3 [1508 kB] Get:18 http://deb.debian.org/debian-security trixie-security/main amd64 ca-certificates all 20250419+deb13u1 [161 kB] Get:19 http://deb.debian.org/debian trixie/main amd64 manpages all 6.9.1-1 [1393 kB] Get:20 http://deb.debian.org/debian trixie/main amd64 perl-modules-5.40 all 5.40.1-6+deb13u1 [3014 kB] Get:21 http://deb.debian.org/debian trixie/main amd64 libgdbm6t64 amd64 1.24-2 [75.2 kB] Get:22 http://deb.debian.org/debian trixie/main amd64 libgdbm-compat4t64 amd64 1.24-2 [50.3 kB] Get:23 http://deb.debian.org/debian trixie/main amd64 libperl5.40 amd64 5.40.1-6+deb13u1 [4326 kB] Get:24 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm/main amd64 rpcsvc-proto amd64 1.4.3-1 [63.3 kB] Get:25 http://deb.debian.org/debian trixie/main amd64 perl amd64 5.40.1-6+deb13u1 [268 kB] Get:26 http://deb.debian.org/debian-security trixie-security/main amd64 xz-utils amd64 5.8.1-1+deb13u2 [660 kB] Get:27 http://deb.debian.org/debian trixie/main amd64 libsframe1 amd64 2.44-3 [78.4 kB] Get:28 http://deb.debian.org/debian trixie/main amd64 binutils-common amd64 2.44-3 [2509 kB] Get:29 http://deb.debian.org/debian trixie/main amd64 libbinutils amd64 2.44-3 [534 kB] Get:30 http://deb.debian.org/debian trixie/main amd64 libgprofng0 amd64 2.44-3 [808 kB] Get:31 http://deb.debian.org/debian trixie/main amd64 libctf-nobfd0 amd64 2.44-3 [156 kB] Get:32 http://deb.debian.org/debian trixie/main amd64 libctf0 amd64 2.44-3 [88.6 kB] Get:33 http://deb.debian.org/debian trixie/main amd64 libjansson4 amd64 2.14-2+b3 [39.8 kB] Get:34 http://deb.debian.org/debian trixie/main amd64 binutils-x86-64-linux-gnu amd64 2.44-3 [1014 kB] Get:35 http://deb.debian.org/debian trixie/main amd64 binutils amd64 2.44-3 [265 kB] Get:36 http://deb.debian.org/debian trixie/main amd64 libc-dev-bin amd64 2.41-12+deb13u4 [60.0 kB] Get:37 http://deb.debian.org/debian-security trixie-security/main amd64 linux-libc-dev all 6.12.113-1 [3021 kB] Get:38 http://deb.debian.org/debian trixie/main amd64 libcrypt-dev amd64 1:4.4.38-1 [119 kB] Get:39 http://deb.debian.org/debian trixie/main amd64 libc6-dev amd64 2.41-12+deb13u4 [1995 kB] Get:40 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm/main amd64 libalgorithm-diff-perl all 1.201-1 [43.3 kB] Get:41 http://deb.debian.org/debian trixie/main amd64 libisl23 amd64 0.27-1 [659 kB] Get:42 http://deb.debian.org/debian trixie/main amd64 libmpfr6 amd64 4.2.2-1 [729 kB] Get:43 http://deb.debian.org/debian trixie/main amd64 libmpc3 amd64 1.3.1-1+b3 [52.2 kB] Get:44 http://deb.debian.org/debian trixie/main amd64 cpp-14-x86-64-linux-gnu amd64 14.2.0-19 [11.0 MB] Get:45 http://deb.debian.org/debian trixie/main amd64 cpp-14 amd64 14.2.0-19 [1280 B] Get:46 http://deb.debian.org/debian trixie/main amd64 cpp-x86-64-linux-gnu amd64 4:14.2.0-1 [4840 B] Get:47 http://deb.debian.org/debian trixie/main amd64 cpp amd64 4:14.2.0-1 [1568 B] Get:48 http://deb.debian.org/debian trixie/main amd64 libcc1-0 amd64 14.2.0-19 [42.8 kB] Get:49 http://deb.debian.org/debian trixie/main amd64 libgomp1 amd64 14.2.0-19 [137 kB] Get:50 http://deb.debian.org/debian trixie/main amd64 libitm1 amd64 14.2.0-19 [26.0 kB] Get:51 http://deb.debian.org/debian trixie/main amd64 libasan8 amd64 14.2.0-19 [2725 kB] Get:52 http://deb.debian.org/debian trixie/main amd64 liblsan0 amd64 14.2.0-19 [1204 kB] Get:53 http://deb.debian.org/debian trixie/main amd64 libtsan2 amd64 14.2.0-19 [2460 kB] Get:54 http://deb.debian.org/debian trixie/main amd64 libubsan1 amd64 14.2.0-19 [1074 kB] Get:55 http://deb.debian.org/debian trixie/main amd64 libhwasan0 amd64 14.2.0-19 [1488 kB] Get:56 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm/main amd64 libalgorithm-merge-perl all 0.08-5 [11.8 kB] Get:57 http://deb.debian.org/debian trixie/main amd64 libquadmath0 amd64 14.2.0-19 [145 kB] Get:58 http://deb.debian.org/debian trixie/main amd64 libgcc-14-dev amd64 14.2.0-19 [2672 kB] Get:59 http://deb.debian.org/debian trixie/main amd64 gcc-14-x86-64-linux-gnu amd64 14.2.0-19 [21.4 MB] Get:60 http://deb.debian.org/debian trixie/main amd64 gcc-14 amd64 14.2.0-19 [540 kB] Get:61 http://deb.debian.org/debian trixie/main amd64 gcc-x86-64-linux-gnu amd64 4:14.2.0-1 [1436 B] Get:62 http://deb.debian.org/debian trixie/main amd64 gcc amd64 4:14.2.0-1 [5136 B] Get:63 http://deb.debian.org/debian trixie/main amd64 libstdc++-14-dev amd64 14.2.0-19 [2376 kB] Get:64 http://deb.debian.org/debian trixie/main amd64 g++-14-x86-64-linux-gnu amd64 14.2.0-19 [12.1 MB] Get:65 http://deb.debian.org/debian trixie/main amd64 g++-14 amd64 14.2.0-19 [22.5 kB] Get:66 http://deb.debian.org/debian trixie/main amd64 g++-x86-64-linux-gnu amd64 4:14.2.0-1 [1200 B] Get:67 http://deb.debian.org/debian trixie/main amd64 g++ amd64 4:14.2.0-1 [1344 B] Get:68 http://deb.debian.org/debian trixie/main amd64 make amd64 4.4.1-2 [463 kB] Get:69 http://deb.debian.org/debian trixie/main amd64 libdpkg-perl all 1.22.22 [651 kB] Get:70 http://deb.debian.org/debian trixie/main amd64 patch amd64 2.8-2 [134 kB] Get:71 http://deb.debian.org/debian trixie/main amd64 dpkg-dev all 1.22.22 [1337 kB] Get:72 http://deb.debian.org/debian trixie/main amd64 build-essential amd64 12.12 [4624 B] Get:73 http://deb.debian.org/debian trixie/main amd64 libfakeroot amd64 1.37.1.1-1 [29.6 kB] Get:74 http://deb.debian.org/debian trixie/main amd64 fakeroot amd64 1.37.1.1-1 [76.0 kB] Get:75 http://deb.debian.org/debian trixie/main amd64 libalgorithm-diff-xs-perl amd64 0.04-9 [11.1 kB] Get:76 http://deb.debian.org/debian trixie/main amd64 libfile-fcntllock-perl amd64 0.22-4+b4 [34.6 kB] Get:77 http://deb.debian.org/debian trixie/main amd64 libgpm2 amd64 1.20.7-11+b2 [14.4 kB] Get:78 http://deb.debian.org/debian trixie/main amd64 manpages-dev all 6.9.1-1 [2122 kB] Get:79 http://deb.debian.org/debian trixie/main amd64 sq amd64 1.3.1-2+b2 [5653 kB] debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, line 79.) debconf: falling back to frontend: Teletype debconf: unable to initialize frontend: Teletype debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Noninteractive Preconfiguring packages ... Fetched 100 MB in 0s (253 MB/s) Selecting previously unselected package libexpat1:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 5039 files and directories currently installed.) Preparing to unpack .../libexpat1_2.9.0-1~deb13u1_amd64.deb ... Unpacking libexpat1:amd64 (2.9.0-1~deb13u1) ... Selecting previously unselected package liblocale-gettext-perl. Preparing to unpack .../liblocale-gettext-perl_1.07-7+b1_amd64.deb ... Unpacking liblocale-gettext-perl (1.07-7+b1) ... Selecting previously unselected package libpython3.13-minimal:amd64. Preparing to unpack .../libpython3.13-minimal_3.13.5-2+deb13u5_amd64.deb ... Unpacking libpython3.13-minimal:amd64 (3.13.5-2+deb13u5) ... Selecting previously unselected package python3.13-minimal. Preparing to unpack .../python3.13-minimal_3.13.5-2+deb13u5_amd64.deb ... Unpacking python3.13-minimal (3.13.5-2+deb13u5) ... Setting up libpython3.13-minimal:amd64 (3.13.5-2+deb13u5) ... Setting up libexpat1:amd64 (2.9.0-1~deb13u1) ... Setting up python3.13-minimal (3.13.5-2+deb13u5) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 5389 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.13.5-1_amd64.deb ... Unpacking python3-minimal (3.13.5-1) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_13.0.0_all.deb ... Unpacking media-types (13.0.0) ... Selecting previously unselected package netbase. Preparing to unpack .../2-netbase_6.5_all.deb ... Unpacking netbase (6.5) ... Selecting previously unselected package libffi8:amd64. Preparing to unpack .../3-libffi8_3.4.8-2_amd64.deb ... Unpacking libffi8:amd64 (3.4.8-2) ... Selecting previously unselected package libncursesw6:amd64. Preparing to unpack .../4-libncursesw6_6.5+20250216-2_amd64.deb ... Unpacking libncursesw6:amd64 (6.5+20250216-2) ... Selecting previously unselected package readline-common. Preparing to unpack .../5-readline-common_8.2-6_all.deb ... Unpacking readline-common (8.2-6) ... Selecting previously unselected package libreadline8t64:amd64. Preparing to unpack .../6-libreadline8t64_8.2-6_amd64.deb ... Adding 'diversion of /lib/x86_64-linux-gnu/libhistory.so.8 to /lib/x86_64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/x86_64-linux-gnu/libhistory.so.8.2 to /lib/x86_64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/x86_64-linux-gnu/libreadline.so.8 to /lib/x86_64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/x86_64-linux-gnu/libreadline.so.8.2 to /lib/x86_64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:amd64 (8.2-6) ... Selecting previously unselected package libpython3.13-stdlib:amd64. Preparing to unpack .../7-libpython3.13-stdlib_3.13.5-2+deb13u5_amd64.deb ... Unpacking libpython3.13-stdlib:amd64 (3.13.5-2+deb13u5) ... Selecting previously unselected package python3.13. Preparing to unpack .../8-python3.13_3.13.5-2+deb13u5_amd64.deb ... Unpacking python3.13 (3.13.5-2+deb13u5) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../9-libpython3-stdlib_3.13.5-1_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.13.5-1) ... Setting up python3-minimal (3.13.5-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 5896 files and directories currently installed.) Preparing to unpack .../00-python3_3.13.5-1_amd64.deb ... Unpacking python3 (3.13.5-1) ... Selecting previously unselected package bzip2. Preparing to unpack .../01-bzip2_1.0.8-6_amd64.deb ... Unpacking bzip2 (1.0.8-6) ... Selecting previously unselected package openssl. Preparing to unpack .../02-openssl_3.5.7-1~deb13u3_amd64.deb ... Unpacking openssl (3.5.7-1~deb13u3) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../03-ca-certificates_20250419+deb13u1_all.deb ... Unpacking ca-certificates (20250419+deb13u1) ... Selecting previously unselected package manpages. Preparing to unpack .../04-manpages_6.9.1-1_all.deb ... Unpacking manpages (6.9.1-1) ... Selecting previously unselected package perl-modules-5.40. Preparing to unpack .../05-perl-modules-5.40_5.40.1-6+deb13u1_all.deb ... Unpacking perl-modules-5.40 (5.40.1-6+deb13u1) ... Selecting previously unselected package libgdbm6t64:amd64. Preparing to unpack .../06-libgdbm6t64_1.24-2_amd64.deb ... Unpacking libgdbm6t64:amd64 (1.24-2) ... Selecting previously unselected package libgdbm-compat4t64:amd64. Preparing to unpack .../07-libgdbm-compat4t64_1.24-2_amd64.deb ... Unpacking libgdbm-compat4t64:amd64 (1.24-2) ... Selecting previously unselected package libperl5.40:amd64. Preparing to unpack .../08-libperl5.40_5.40.1-6+deb13u1_amd64.deb ... Unpacking libperl5.40:amd64 (5.40.1-6+deb13u1) ... Selecting previously unselected package perl. Preparing to unpack .../09-perl_5.40.1-6+deb13u1_amd64.deb ... Unpacking perl (5.40.1-6+deb13u1) ... Selecting previously unselected package xz-utils. Preparing to unpack .../10-xz-utils_5.8.1-1+deb13u2_amd64.deb ... Unpacking xz-utils (5.8.1-1+deb13u2) ... Selecting previously unselected package libsframe1:amd64. Preparing to unpack .../11-libsframe1_2.44-3_amd64.deb ... Unpacking libsframe1:amd64 (2.44-3) ... Selecting previously unselected package binutils-common:amd64. Preparing to unpack .../12-binutils-common_2.44-3_amd64.deb ... Unpacking binutils-common:amd64 (2.44-3) ... Selecting previously unselected package libbinutils:amd64. Preparing to unpack .../13-libbinutils_2.44-3_amd64.deb ... Unpacking libbinutils:amd64 (2.44-3) ... Selecting previously unselected package libgprofng0:amd64. Preparing to unpack .../14-libgprofng0_2.44-3_amd64.deb ... Unpacking libgprofng0:amd64 (2.44-3) ... Selecting previously unselected package libctf-nobfd0:amd64. Preparing to unpack .../15-libctf-nobfd0_2.44-3_amd64.deb ... Unpacking libctf-nobfd0:amd64 (2.44-3) ... Selecting previously unselected package libctf0:amd64. Preparing to unpack .../16-libctf0_2.44-3_amd64.deb ... Unpacking libctf0:amd64 (2.44-3) ... Selecting previously unselected package libjansson4:amd64. Preparing to unpack .../17-libjansson4_2.14-2+b3_amd64.deb ... Unpacking libjansson4:amd64 (2.14-2+b3) ... Selecting previously unselected package binutils-x86-64-linux-gnu. Preparing to unpack .../18-binutils-x86-64-linux-gnu_2.44-3_amd64.deb ... Unpacking binutils-x86-64-linux-gnu (2.44-3) ... Selecting previously unselected package binutils. Preparing to unpack .../19-binutils_2.44-3_amd64.deb ... Unpacking binutils (2.44-3) ... Selecting previously unselected package libc-dev-bin. Preparing to unpack .../20-libc-dev-bin_2.41-12+deb13u4_amd64.deb ... Unpacking libc-dev-bin (2.41-12+deb13u4) ... Selecting previously unselected package linux-libc-dev. Preparing to unpack .../21-linux-libc-dev_6.12.113-1_all.deb ... Unpacking linux-libc-dev (6.12.113-1) ... Selecting previously unselected package libcrypt-dev:amd64. Preparing to unpack .../22-libcrypt-dev_1%3a4.4.38-1_amd64.deb ... Unpacking libcrypt-dev:amd64 (1:4.4.38-1) ... Selecting previously unselected package rpcsvc-proto. Preparing to unpack .../23-rpcsvc-proto_1.4.3-1_amd64.deb ... Unpacking rpcsvc-proto (1.4.3-1) ... Selecting previously unselected package libc6-dev:amd64. Preparing to unpack .../24-libc6-dev_2.41-12+deb13u4_amd64.deb ... Unpacking libc6-dev:amd64 (2.41-12+deb13u4) ... Selecting previously unselected package libisl23:amd64. Preparing to unpack .../25-libisl23_0.27-1_amd64.deb ... Unpacking libisl23:amd64 (0.27-1) ... Selecting previously unselected package libmpfr6:amd64. Preparing to unpack .../26-libmpfr6_4.2.2-1_amd64.deb ... Unpacking libmpfr6:amd64 (4.2.2-1) ... Selecting previously unselected package libmpc3:amd64. Preparing to unpack .../27-libmpc3_1.3.1-1+b3_amd64.deb ... Unpacking libmpc3:amd64 (1.3.1-1+b3) ... Selecting previously unselected package cpp-14-x86-64-linux-gnu. Preparing to unpack .../28-cpp-14-x86-64-linux-gnu_14.2.0-19_amd64.deb ... Unpacking cpp-14-x86-64-linux-gnu (14.2.0-19) ... Selecting previously unselected package cpp-14. Preparing to unpack .../29-cpp-14_14.2.0-19_amd64.deb ... Unpacking cpp-14 (14.2.0-19) ... Selecting previously unselected package cpp-x86-64-linux-gnu. Preparing to unpack .../30-cpp-x86-64-linux-gnu_4%3a14.2.0-1_amd64.deb ... Unpacking cpp-x86-64-linux-gnu (4:14.2.0-1) ... Selecting previously unselected package cpp. Preparing to unpack .../31-cpp_4%3a14.2.0-1_amd64.deb ... Unpacking cpp (4:14.2.0-1) ... Selecting previously unselected package libcc1-0:amd64. Preparing to unpack .../32-libcc1-0_14.2.0-19_amd64.deb ... Unpacking libcc1-0:amd64 (14.2.0-19) ... Selecting previously unselected package libgomp1:amd64. Preparing to unpack .../33-libgomp1_14.2.0-19_amd64.deb ... Unpacking libgomp1:amd64 (14.2.0-19) ... Selecting previously unselected package libitm1:amd64. Preparing to unpack .../34-libitm1_14.2.0-19_amd64.deb ... Unpacking libitm1:amd64 (14.2.0-19) ... Selecting previously unselected package libasan8:amd64. Preparing to unpack .../35-libasan8_14.2.0-19_amd64.deb ... Unpacking libasan8:amd64 (14.2.0-19) ... Selecting previously unselected package liblsan0:amd64. Preparing to unpack .../36-liblsan0_14.2.0-19_amd64.deb ... Unpacking liblsan0:amd64 (14.2.0-19) ... Selecting previously unselected package libtsan2:amd64. Preparing to unpack .../37-libtsan2_14.2.0-19_amd64.deb ... Unpacking libtsan2:amd64 (14.2.0-19) ... Selecting previously unselected package libubsan1:amd64. Preparing to unpack .../38-libubsan1_14.2.0-19_amd64.deb ... Unpacking libubsan1:amd64 (14.2.0-19) ... Selecting previously unselected package libhwasan0:amd64. Preparing to unpack .../39-libhwasan0_14.2.0-19_amd64.deb ... Unpacking libhwasan0:amd64 (14.2.0-19) ... Selecting previously unselected package libquadmath0:amd64. Preparing to unpack .../40-libquadmath0_14.2.0-19_amd64.deb ... Unpacking libquadmath0:amd64 (14.2.0-19) ... Selecting previously unselected package libgcc-14-dev:amd64. Preparing to unpack .../41-libgcc-14-dev_14.2.0-19_amd64.deb ... Unpacking libgcc-14-dev:amd64 (14.2.0-19) ... Selecting previously unselected package gcc-14-x86-64-linux-gnu. Preparing to unpack .../42-gcc-14-x86-64-linux-gnu_14.2.0-19_amd64.deb ... Unpacking gcc-14-x86-64-linux-gnu (14.2.0-19) ... Selecting previously unselected package gcc-14. Preparing to unpack .../43-gcc-14_14.2.0-19_amd64.deb ... Unpacking gcc-14 (14.2.0-19) ... Selecting previously unselected package gcc-x86-64-linux-gnu. Preparing to unpack .../44-gcc-x86-64-linux-gnu_4%3a14.2.0-1_amd64.deb ... Unpacking gcc-x86-64-linux-gnu (4:14.2.0-1) ... Selecting previously unselected package gcc. Preparing to unpack .../45-gcc_4%3a14.2.0-1_amd64.deb ... Unpacking gcc (4:14.2.0-1) ... Selecting previously unselected package libstdc++-14-dev:amd64. Preparing to unpack .../46-libstdc++-14-dev_14.2.0-19_amd64.deb ... Unpacking libstdc++-14-dev:amd64 (14.2.0-19) ... Selecting previously unselected package g++-14-x86-64-linux-gnu. Preparing to unpack .../47-g++-14-x86-64-linux-gnu_14.2.0-19_amd64.deb ... Unpacking g++-14-x86-64-linux-gnu (14.2.0-19) ... Selecting previously unselected package g++-14. Preparing to unpack .../48-g++-14_14.2.0-19_amd64.deb ... Unpacking g++-14 (14.2.0-19) ... Selecting previously unselected package g++-x86-64-linux-gnu. Preparing to unpack .../49-g++-x86-64-linux-gnu_4%3a14.2.0-1_amd64.deb ... Unpacking g++-x86-64-linux-gnu (4:14.2.0-1) ... Selecting previously unselected package g++. Preparing to unpack .../50-g++_4%3a14.2.0-1_amd64.deb ... Unpacking g++ (4:14.2.0-1) ... Selecting previously unselected package make. Preparing to unpack .../51-make_4.4.1-2_amd64.deb ... Unpacking make (4.4.1-2) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../52-libdpkg-perl_1.22.22_all.deb ... Unpacking libdpkg-perl (1.22.22) ... Selecting previously unselected package patch. Preparing to unpack .../53-patch_2.8-2_amd64.deb ... Unpacking patch (2.8-2) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../54-dpkg-dev_1.22.22_all.deb ... Unpacking dpkg-dev (1.22.22) ... Selecting previously unselected package build-essential. Preparing to unpack .../55-build-essential_12.12_amd64.deb ... Unpacking build-essential (12.12) ... Selecting previously unselected package libfakeroot:amd64. Preparing to unpack .../56-libfakeroot_1.37.1.1-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.37.1.1-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../57-fakeroot_1.37.1.1-1_amd64.deb ... Unpacking fakeroot (1.37.1.1-1) ... Selecting previously unselected package libalgorithm-diff-perl. Preparing to unpack .../58-libalgorithm-diff-perl_1.201-1_all.deb ... Unpacking libalgorithm-diff-perl (1.201-1) ... Selecting previously unselected package libalgorithm-diff-xs-perl. Preparing to unpack .../59-libalgorithm-diff-xs-perl_0.04-9_amd64.deb ... Unpacking libalgorithm-diff-xs-perl (0.04-9) ... Selecting previously unselected package libalgorithm-merge-perl. Preparing to unpack .../60-libalgorithm-merge-perl_0.08-5_all.deb ... Unpacking libalgorithm-merge-perl (0.08-5) ... Selecting previously unselected package libfile-fcntllock-perl. Preparing to unpack .../61-libfile-fcntllock-perl_0.22-4+b4_amd64.deb ... Unpacking libfile-fcntllock-perl (0.22-4+b4) ... Selecting previously unselected package libgpm2:amd64. Preparing to unpack .../62-libgpm2_1.20.7-11+b2_amd64.deb ... Unpacking libgpm2:amd64 (1.20.7-11+b2) ... Selecting previously unselected package manpages-dev. Preparing to unpack .../63-manpages-dev_6.9.1-1_all.deb ... Unpacking manpages-dev (6.9.1-1) ... Selecting previously unselected package sq. Preparing to unpack .../64-sq_1.3.1-2+b2_amd64.deb ... Unpacking sq (1.3.1-2+b2) ... Setting up media-types (13.0.0) ... Setting up libgpm2:amd64 (1.20.7-11+b2) ... Setting up libgdbm6t64:amd64 (1.24-2) ... Setting up libgdbm-compat4t64:amd64 (1.24-2) ... Setting up manpages (6.9.1-1) ... Setting up binutils-common:amd64 (2.44-3) ... Setting up linux-libc-dev (6.12.113-1) ... Setting up libctf-nobfd0:amd64 (2.44-3) ... Setting up sq (1.3.1-2+b2) ... Setting up libgomp1:amd64 (14.2.0-19) ... Setting up bzip2 (1.0.8-6) ... Setting up libsframe1:amd64 (2.44-3) ... Setting up libfakeroot:amd64 (1.37.1.1-1) ... Setting up libjansson4:amd64 (2.14-2+b3) ... Setting up fakeroot (1.37.1.1-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode update-alternatives: warning: skip creation of /usr/share/man/man1/fakeroot.1.gz because associated file /usr/share/man/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/faked.1.gz because associated file /usr/share/man/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/es/man1/fakeroot.1.gz because associated file /usr/share/man/es/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/es/man1/faked.1.gz because associated file /usr/share/man/es/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/fr/man1/fakeroot.1.gz because associated file /usr/share/man/fr/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/fr/man1/faked.1.gz because associated file /usr/share/man/fr/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/sv/man1/fakeroot.1.gz because associated file /usr/share/man/sv/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/sv/man1/faked.1.gz because associated file /usr/share/man/sv/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist Setting up rpcsvc-proto (1.4.3-1) ... Setting up make (4.4.1-2) ... Setting up libmpfr6:amd64 (4.2.2-1) ... Setting up xz-utils (5.8.1-1+deb13u2) ... update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist Setting up libquadmath0:amd64 (14.2.0-19) ... Setting up libmpc3:amd64 (1.3.1-1+b3) ... Setting up patch (2.8-2) ... Setting up libncursesw6:amd64 (6.5+20250216-2) ... Setting up libubsan1:amd64 (14.2.0-19) ... Setting up libffi8:amd64 (3.4.8-2) ... Setting up perl-modules-5.40 (5.40.1-6+deb13u1) ... Setting up libhwasan0:amd64 (14.2.0-19) ... Setting up libcrypt-dev:amd64 (1:4.4.38-1) ... Setting up libasan8:amd64 (14.2.0-19) ... Setting up netbase (6.5) ... Setting up libtsan2:amd64 (14.2.0-19) ... Setting up libbinutils:amd64 (2.44-3) ... Setting up libisl23:amd64 (0.27-1) ... Setting up libc-dev-bin (2.41-12+deb13u4) ... Setting up openssl (3.5.7-1~deb13u3) ... Setting up readline-common (8.2-6) ... Setting up libcc1-0:amd64 (14.2.0-19) ... Setting up liblocale-gettext-perl (1.07-7+b1) ... Setting up liblsan0:amd64 (14.2.0-19) ... Setting up libitm1:amd64 (14.2.0-19) ... Setting up libctf0:amd64 (2.44-3) ... Setting up manpages-dev (6.9.1-1) ... Setting up libperl5.40:amd64 (5.40.1-6+deb13u1) ... Setting up ca-certificates (20250419+deb13u1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype debconf: unable to initialize frontend: Teletype debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Noninteractive Updating certificates in /etc/ssl/certs... 148 added, 0 removed; done. Setting up perl (5.40.1-6+deb13u1) ... Setting up libgprofng0:amd64 (2.44-3) ... Setting up cpp-14-x86-64-linux-gnu (14.2.0-19) ... Setting up libdpkg-perl (1.22.22) ... Setting up cpp-14 (14.2.0-19) ... Setting up libreadline8t64:amd64 (8.2-6) ... Setting up libc6-dev:amd64 (2.41-12+deb13u4) ... Setting up libgcc-14-dev:amd64 (14.2.0-19) ... Setting up libstdc++-14-dev:amd64 (14.2.0-19) ... Setting up libpython3.13-stdlib:amd64 (3.13.5-2+deb13u5) ... Setting up libpython3-stdlib:amd64 (3.13.5-1) ... Setting up binutils-x86-64-linux-gnu (2.44-3) ... Setting up cpp-x86-64-linux-gnu (4:14.2.0-1) ... Setting up libfile-fcntllock-perl (0.22-4+b4) ... Setting up python3.13 (3.13.5-2+deb13u5) ... Setting up libalgorithm-diff-perl (1.201-1) ... Setting up python3 (3.13.5-1) ... running python rtupdate hooks for python3.13... running python post-rtupdate hooks for python3.13... Setting up binutils (2.44-3) ... Setting up dpkg-dev (1.22.22) ... Setting up cpp (4:14.2.0-1) ... Setting up gcc-14-x86-64-linux-gnu (14.2.0-19) ... Setting up libalgorithm-diff-xs-perl (0.04-9) ... Setting up libalgorithm-merge-perl (0.08-5) ... Setting up gcc-x86-64-linux-gnu (4:14.2.0-1) ... Setting up gcc-14 (14.2.0-19) ... Setting up g++-14-x86-64-linux-gnu (14.2.0-19) ... Setting up g++-x86-64-linux-gnu (4:14.2.0-1) ... Setting up g++-14 (14.2.0-19) ... Setting up gcc (4:14.2.0-1) ... Setting up g++ (4:14.2.0-1) ... update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up build-essential (12.12) ... Processing triggers for libc-bin (2.41-12+deb13u4) ... Processing triggers for ca-certificates (20250419+deb13u1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation npm warn deprecated uuid@10.0.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated supertest@6.3.4: Please upgrade to supertest v7.1.3+, see release notes at https://github.com/forwardemail/supertest/releases/tag/v7.1.3 - maintenance is supported by Forward Email @ https://forwardemail.net npm warn deprecated superagent@8.1.2: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm warn deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm warn deprecated sinon@15.2.0: 16.1.1 npm warn deprecated node-xml2js-promise@1.1.1: node-xml2js is now supported promise npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated har-validator@5.1.5: this library is no longer supported npm warn deprecated google-p12-pem@4.0.1: Package is no longer maintained npm warn deprecated git-raw-commits@2.0.11: Deprecated and no longer maintained. Use @conventional-changelog/git-client instead. npm warn deprecated dottie@2.0.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated glob@10.3.10: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated backbone-undo@0.2.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated @sinonjs/text-encoding@0.7.3: Deprecated: no longer maintained and no longer used by Sinon packages. See npm warn deprecated https://github.com/sinonjs/nise/issues/243 for replacement details. npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@8.1.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated uuid@3.4.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated git-raw-commits@5.0.1: Deprecated and no longer maintained. Use @conventional-changelog/git-client instead. npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated uuid@8.3.2: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated uuid@8.0.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated uuid@9.0.1: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated uuid@9.0.1: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated uuid@8.3.2: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm warn deprecated aws-sdk@2.1693.0: The AWS SDK for JavaScript (v2) has reached end-of-support, and no longer receives updates. Please migrate your code to use AWS SDK for JavaScript (v3). More info https://a.co/cUPnyil npm warn deprecated next@14.2.4: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details. > pepper@0.0.1 postinstall > patch-package patch-package 8.0.1 Applying patches... formik@2.4.6 ✔ Warning: patch-package detected a patch file version mismatch Don't worry! This is probably fine. The patch was still applied successfully. Here's the deets: Patch file created for formik@2.4.6 applied to formik@2.4.9 At path node_modules/formik This warning is just to give you a heads-up. There is a small chance of breakage even though the patch was applied successfully. Make sure the package still behaves like you expect (you wrote tests, right?) and then run patch-package formik to update the version in the patch file name and make this warning go away. --- patch-package finished with 1 warning(s). > pepper@0.0.1 prepare > husky install husky - git command not found, skipping install added 1572 packages in 24s 303 packages are looking for funding run `npm fund` for details npm warn install-scripts 5 packages have install scripts not yet covered by allowScripts: npm warn install-scripts aws-sdk@2.1693.0 (postinstall: node scripts/warn-maintenance-mode.js) npm warn install-scripts protobufjs@7.2.4 (postinstall: node scripts/postinstall) npm warn install-scripts protobufjs@7.6.5 (postinstall: node scripts/postinstall) npm warn install-scripts re2@1.24.1 (install: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR --skip-path-var RE2_DOWNLOAD_SKIP_PATH --skip-ver-var RE2_DOWNLOAD_SKIP_VER || node-gyp -j max rebuild) npm warn install-scripts unrs-resolver@1.12.2 (postinstall: node postinstall.js) npm warn install-scripts npm warn install-scripts Run `npm install-scripts ls` to review, or `npm install-scripts approve ` to allow. Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-build-run-linting npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. Get:1 http://deb.debian.org/debian trixie InRelease [140 kB] Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB] Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB] Get:4 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm InRelease [151 kB] Get:5 http://deb.debian.org/debian trixie/main amd64 Packages [9678 kB] Get:6 http://deb.debian.org/debian trixie-updates/main amd64 Packages [720 B] Get:7 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [269 kB] Get:8 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-security-proxy bookworm-security InRelease [34.8 kB] Get:9 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-proxy bookworm/main amd64 Packages [8790 kB] Get:10 http://nexus-nexus-repository-manager.jx.svc.cluster.local:8081/repository/apt-debian-security-proxy bookworm-security/main amd64 Packages [355 kB] Fetched 19.5 MB in 1s (14.8 MB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: git-man libbrotli1 libcom-err2 libcurl3t64-gnutls liberror-perl libexpat1 libffi8 libgdbm-compat4t64 libgdbm6t64 libgnutls30t64 libgssapi-krb5-2 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap2 libnghttp2-14 libnghttp3-9 libngtcp2-16 libngtcp2-crypto-gnutls8 libp11-kit0 libperl5.40 libpsl5t64 librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1t64 libtasn1-6 libunistring5 perl perl-modules-5.40 Suggested packages: gettext-base git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n gnutls-bin krb5-doc krb5-user sensible-utils perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libtap-harness-archive-perl Recommended packages: ca-certificates patch less ssh-client krb5-locales libldap-common publicsuffix libsasl2-modules netbase The following NEW packages will be installed: git git-man libbrotli1 libcom-err2 libcurl3t64-gnutls liberror-perl libexpat1 libffi8 libgdbm-compat4t64 libgdbm6t64 libgnutls30t64 libgssapi-krb5-2 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap2 libnghttp2-14 libnghttp3-9 libngtcp2-16 libngtcp2-crypto-gnutls8 libp11-kit0 libperl5.40 libpsl5t64 librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1t64 libtasn1-6 libunistring5 perl perl-modules-5.40 0 upgraded, 33 newly installed, 0 to remove and 1 not upgraded. Need to get 23.7 MB of archives. After this operation, 119 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian-security trixie-security/main amd64 libexpat1 amd64 2.9.0-1~deb13u1 [126 kB] Get:2 http://deb.debian.org/debian trixie/main amd64 perl-modules-5.40 all 5.40.1-6+deb13u1 [3014 kB] Get:3 http://deb.debian.org/debian trixie/main amd64 libgdbm6t64 amd64 1.24-2 [75.2 kB] Get:4 http://deb.debian.org/debian trixie/main amd64 libgdbm-compat4t64 amd64 1.24-2 [50.3 kB] Get:5 http://deb.debian.org/debian trixie/main amd64 libperl5.40 amd64 5.40.1-6+deb13u1 [4326 kB] Get:6 http://deb.debian.org/debian trixie/main amd64 perl amd64 5.40.1-6+deb13u1 [268 kB] Get:7 http://deb.debian.org/debian trixie/main amd64 libbrotli1 amd64 1.1.0-2+b7 [307 kB] Get:8 http://deb.debian.org/debian trixie/main amd64 libunistring5 amd64 1.3-2 [477 kB] Get:9 http://deb.debian.org/debian trixie/main amd64 libidn2-0 amd64 2.3.8-2 [109 kB] Get:10 http://deb.debian.org/debian trixie/main amd64 libffi8 amd64 3.4.8-2 [24.1 kB] Get:11 http://deb.debian.org/debian trixie/main amd64 libp11-kit0 amd64 0.25.5-3 [425 kB] Get:12 http://deb.debian.org/debian trixie/main amd64 libtasn1-6 amd64 4.20.0-2+deb13u1 [50.1 kB] Get:13 http://deb.debian.org/debian trixie/main amd64 libgnutls30t64 amd64 3.8.9-3+deb13u4 [1469 kB] Get:14 http://deb.debian.org/debian trixie/main amd64 libkrb5support0 amd64 1.21.3-5+deb13u1 [33.1 kB] Get:15 http://deb.debian.org/debian trixie/main amd64 libcom-err2 amd64 1.47.2-3+b12 [25.0 kB] Get:16 http://deb.debian.org/debian trixie/main amd64 libk5crypto3 amd64 1.21.3-5+deb13u1 [81.2 kB] Get:17 http://deb.debian.org/debian trixie/main amd64 libkeyutils1 amd64 1.6.3-6 [9456 B] Get:18 http://deb.debian.org/debian trixie/main amd64 libkrb5-3 amd64 1.21.3-5+deb13u1 [326 kB] Get:19 http://deb.debian.org/debian trixie/main amd64 libgssapi-krb5-2 amd64 1.21.3-5+deb13u1 [138 kB] Get:20 http://deb.debian.org/debian trixie/main amd64 libsasl2-modules-db amd64 2.1.28+dfsg1-9 [19.8 kB] Get:21 http://deb.debian.org/debian trixie/main amd64 libsasl2-2 amd64 2.1.28+dfsg1-9 [57.5 kB] Get:22 http://deb.debian.org/debian trixie/main amd64 libldap2 amd64 2.6.10+dfsg-1 [194 kB] Get:23 http://deb.debian.org/debian trixie/main amd64 libnghttp2-14 amd64 1.64.0-1.1+deb13u1 [76.2 kB] Get:24 http://deb.debian.org/debian trixie/main amd64 libnghttp3-9 amd64 1.8.0-1 [67.7 kB] Get:25 http://deb.debian.org/debian trixie/main amd64 libngtcp2-16 amd64 1.11.0-1+deb13u1 [132 kB] Get:26 http://deb.debian.org/debian trixie/main amd64 libngtcp2-crypto-gnutls8 amd64 1.11.0-1+deb13u1 [29.5 kB] Get:27 http://deb.debian.org/debian trixie/main amd64 libpsl5t64 amd64 0.21.2-1.1+b1 [57.2 kB] Get:28 http://deb.debian.org/debian trixie/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2+b5 [58.8 kB] Get:29 http://deb.debian.org/debian trixie/main amd64 libssh2-1t64 amd64 1.11.1-1+deb13u2 [245 kB] Get:30 http://deb.debian.org/debian-security trixie-security/main amd64 libcurl3t64-gnutls amd64 8.14.1-2+deb13u7 [385 kB] Get:31 http://deb.debian.org/debian trixie/main amd64 liberror-perl all 0.17030-1 [26.9 kB] Get:32 http://deb.debian.org/debian trixie/main amd64 git-man all 1:2.47.3-0+deb13u1 [2205 kB] Get:33 http://deb.debian.org/debian trixie/main amd64 git amd64 1:2.47.3-0+deb13u1 [8862 kB] debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, line 33.) debconf: falling back to frontend: Teletype debconf: unable to initialize frontend: Teletype debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Noninteractive Fetched 23.7 MB in 0s (216 MB/s) Selecting previously unselected package libexpat1:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 5039 files and directories currently installed.) Preparing to unpack .../00-libexpat1_2.9.0-1~deb13u1_amd64.deb ... Unpacking libexpat1:amd64 (2.9.0-1~deb13u1) ... Selecting previously unselected package perl-modules-5.40. Preparing to unpack .../01-perl-modules-5.40_5.40.1-6+deb13u1_all.deb ... Unpacking perl-modules-5.40 (5.40.1-6+deb13u1) ... Selecting previously unselected package libgdbm6t64:amd64. Preparing to unpack .../02-libgdbm6t64_1.24-2_amd64.deb ... Unpacking libgdbm6t64:amd64 (1.24-2) ... Selecting previously unselected package libgdbm-compat4t64:amd64. Preparing to unpack .../03-libgdbm-compat4t64_1.24-2_amd64.deb ... Unpacking libgdbm-compat4t64:amd64 (1.24-2) ... Selecting previously unselected package libperl5.40:amd64. Preparing to unpack .../04-libperl5.40_5.40.1-6+deb13u1_amd64.deb ... Unpacking libperl5.40:amd64 (5.40.1-6+deb13u1) ... Selecting previously unselected package perl. Preparing to unpack .../05-perl_5.40.1-6+deb13u1_amd64.deb ... Unpacking perl (5.40.1-6+deb13u1) ... Selecting previously unselected package libbrotli1:amd64. Preparing to unpack .../06-libbrotli1_1.1.0-2+b7_amd64.deb ... Unpacking libbrotli1:amd64 (1.1.0-2+b7) ... Selecting previously unselected package libunistring5:amd64. Preparing to unpack .../07-libunistring5_1.3-2_amd64.deb ... Unpacking libunistring5:amd64 (1.3-2) ... Selecting previously unselected package libidn2-0:amd64. Preparing to unpack .../08-libidn2-0_2.3.8-2_amd64.deb ... Unpacking libidn2-0:amd64 (2.3.8-2) ... Selecting previously unselected package libffi8:amd64. Preparing to unpack .../09-libffi8_3.4.8-2_amd64.deb ... Unpacking libffi8:amd64 (3.4.8-2) ... Selecting previously unselected package libp11-kit0:amd64. Preparing to unpack .../10-libp11-kit0_0.25.5-3_amd64.deb ... Unpacking libp11-kit0:amd64 (0.25.5-3) ... Selecting previously unselected package libtasn1-6:amd64. Preparing to unpack .../11-libtasn1-6_4.20.0-2+deb13u1_amd64.deb ... Unpacking libtasn1-6:amd64 (4.20.0-2+deb13u1) ... Selecting previously unselected package libgnutls30t64:amd64. Preparing to unpack .../12-libgnutls30t64_3.8.9-3+deb13u4_amd64.deb ... Unpacking libgnutls30t64:amd64 (3.8.9-3+deb13u4) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../13-libkrb5support0_1.21.3-5+deb13u1_amd64.deb ... Unpacking libkrb5support0:amd64 (1.21.3-5+deb13u1) ... Selecting previously unselected package libcom-err2:amd64. Preparing to unpack .../14-libcom-err2_1.47.2-3+b12_amd64.deb ... Unpacking libcom-err2:amd64 (1.47.2-3+b12) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../15-libk5crypto3_1.21.3-5+deb13u1_amd64.deb ... Unpacking libk5crypto3:amd64 (1.21.3-5+deb13u1) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../16-libkeyutils1_1.6.3-6_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6.3-6) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../17-libkrb5-3_1.21.3-5+deb13u1_amd64.deb ... Unpacking libkrb5-3:amd64 (1.21.3-5+deb13u1) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../18-libgssapi-krb5-2_1.21.3-5+deb13u1_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.21.3-5+deb13u1) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../19-libsasl2-modules-db_2.1.28+dfsg1-9_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.28+dfsg1-9) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../20-libsasl2-2_2.1.28+dfsg1-9_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.28+dfsg1-9) ... Selecting previously unselected package libldap2:amd64. Preparing to unpack .../21-libldap2_2.6.10+dfsg-1_amd64.deb ... Unpacking libldap2:amd64 (2.6.10+dfsg-1) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../22-libnghttp2-14_1.64.0-1.1+deb13u1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.64.0-1.1+deb13u1) ... Selecting previously unselected package libnghttp3-9:amd64. Preparing to unpack .../23-libnghttp3-9_1.8.0-1_amd64.deb ... Unpacking libnghttp3-9:amd64 (1.8.0-1) ... Selecting previously unselected package libngtcp2-16:amd64. Preparing to unpack .../24-libngtcp2-16_1.11.0-1+deb13u1_amd64.deb ... Unpacking libngtcp2-16:amd64 (1.11.0-1+deb13u1) ... Selecting previously unselected package libngtcp2-crypto-gnutls8:amd64. Preparing to unpack .../25-libngtcp2-crypto-gnutls8_1.11.0-1+deb13u1_amd64.deb ... Unpacking libngtcp2-crypto-gnutls8:amd64 (1.11.0-1+deb13u1) ... Selecting previously unselected package libpsl5t64:amd64. Preparing to unpack .../26-libpsl5t64_0.21.2-1.1+b1_amd64.deb ... Unpacking libpsl5t64:amd64 (0.21.2-1.1+b1) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../27-librtmp1_2.4+20151223.gitfa8646d.1-2+b5_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b5) ... Selecting previously unselected package libssh2-1t64:amd64. Preparing to unpack .../28-libssh2-1t64_1.11.1-1+deb13u2_amd64.deb ... Unpacking libssh2-1t64:amd64 (1.11.1-1+deb13u2) ... Selecting previously unselected package libcurl3t64-gnutls:amd64. Preparing to unpack .../29-libcurl3t64-gnutls_8.14.1-2+deb13u7_amd64.deb ... Unpacking libcurl3t64-gnutls:amd64 (8.14.1-2+deb13u7) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../30-liberror-perl_0.17030-1_all.deb ... Unpacking liberror-perl (0.17030-1) ... Selecting previously unselected package git-man. Preparing to unpack .../31-git-man_1%3a2.47.3-0+deb13u1_all.deb ... Unpacking git-man (1:2.47.3-0+deb13u1) ... Selecting previously unselected package git. Preparing to unpack .../32-git_1%3a2.47.3-0+deb13u1_amd64.deb ... Unpacking git (1:2.47.3-0+deb13u1) ... Setting up libexpat1:amd64 (2.9.0-1~deb13u1) ... Setting up libkeyutils1:amd64 (1.6.3-6) ... Setting up libgdbm6t64:amd64 (1.24-2) ... Setting up libgdbm-compat4t64:amd64 (1.24-2) ... Setting up libbrotli1:amd64 (1.1.0-2+b7) ... Setting up libnghttp2-14:amd64 (1.64.0-1.1+deb13u1) ... Setting up libcom-err2:amd64 (1.47.2-3+b12) ... Setting up libkrb5support0:amd64 (1.21.3-5+deb13u1) ... Setting up libsasl2-modules-db:amd64 (2.1.28+dfsg1-9) ... Setting up libunistring5:amd64 (1.3-2) ... Setting up libk5crypto3:amd64 (1.21.3-5+deb13u1) ... Setting up libsasl2-2:amd64 (2.1.28+dfsg1-9) ... Setting up libnghttp3-9:amd64 (1.8.0-1) ... Setting up libffi8:amd64 (3.4.8-2) ... Setting up perl-modules-5.40 (5.40.1-6+deb13u1) ... Setting up libtasn1-6:amd64 (4.20.0-2+deb13u1) ... Setting up git-man (1:2.47.3-0+deb13u1) ... Setting up libngtcp2-16:amd64 (1.11.0-1+deb13u1) ... Setting up libkrb5-3:amd64 (1.21.3-5+deb13u1) ... Setting up libssh2-1t64:amd64 (1.11.1-1+deb13u2) ... Setting up libldap2:amd64 (2.6.10+dfsg-1) ... Setting up libidn2-0:amd64 (2.3.8-2) ... Setting up libperl5.40:amd64 (5.40.1-6+deb13u1) ... Setting up perl (5.40.1-6+deb13u1) ... Setting up libp11-kit0:amd64 (0.25.5-3) ... Setting up libgssapi-krb5-2:amd64 (1.21.3-5+deb13u1) ... Setting up libgnutls30t64:amd64 (3.8.9-3+deb13u4) ... Setting up libpsl5t64:amd64 (0.21.2-1.1+b1) ... Setting up liberror-perl (0.17030-1) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b5) ... Setting up libngtcp2-crypto-gnutls8:amd64 (1.11.0-1+deb13u1) ... Setting up libcurl3t64-gnutls:amd64 (8.14.1-2+deb13u7) ... Setting up git (1:2.47.3-0+deb13u1) ... Processing triggers for libc-bin (2.41-12+deb13u4) ... npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-build-lint-errors Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-test-server npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > server@1.0.0 e2e > NODE_ENV=test node tests/assert-test-database.cjs && NODE_ENV=test npm run db:reset && NODE_ENV=test jest --runInBand --coverage --setupFilesAfterEnv=./jest.setup.js npm warn Unknown env config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > server@1.0.0 db:reset > (NODE_ENV=${NODE_ENV:-development} sequelize db:drop || true) && npm run db:setup Sequelize CLI [Node: 26.12.1, CLI: 6.6.5, ORM: 6.37.8] Loaded configuration file "../../node_modules/@greencapitaltrade/utils/build/src/config/sequelize.js". Database pepper_outbox_test dropped. npm warn Unknown env config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > server@1.0.0 db:setup > (NODE_ENV=${NODE_ENV:-development} sequelize db:create || true) && NODE_ENV=${NODE_ENV:-development} sequelize db:migrate Sequelize CLI [Node: 26.12.1, CLI: 6.6.5, ORM: 6.37.8] Loaded configuration file "../../node_modules/@greencapitaltrade/utils/build/src/config/sequelize.js". Database pepper_outbox_test created. Sequelize CLI [Node: 26.12.1, CLI: 6.6.5, ORM: 6.37.8] Loaded configuration file "../../node_modules/@greencapitaltrade/utils/build/src/config/sequelize.js". == 20220119072021-createChannels: migrating ======= == 20220119072021-createChannels: migrated (0.017s) == 20220119074625-createChannelProviders: migrating ======= == 20220119074625-createChannelProviders: migrated (0.009s) == 20220119075233-createChannelProviderConfig: migrating ======= == 20220119075233-createChannelProviderConfig: migrated (0.013s) == 20220123090154-createLeads: migrating ======= == 20220123090154-createLeads: migrated (0.009s) == 20220123094225-createLeadContacts: migrating ======= == 20220123094225-createLeadContacts: migrated (0.020s) == 20220123100356-createLeadAttributes: migrating ======= == 20220123100356-createLeadAttributes: migrated (0.012s) == 20220124105527-createTemplates: migrating ======= == 20220124105527-createTemplates: migrated (0.010s) == 20220124111236-createLangauges: migrating ======= == 20220124111236-createLangauges: migrated (0.007s) == 20220124111539-createTemplateContent: migrating ======= == 20220124111539-createTemplateContent: migrated (0.009s) == 20220124171203-createSmsLogs: migrating ======= == 20220124171203-createSmsLogs: migrated (0.012s) == 20220124173016-createSmsLogEvent: migrating ======= == 20220124173016-createSmsLogEvent: migrated (0.010s) == 20220210084028-createWhatsAppLogs: migrating ======= == 20220210084028-createWhatsAppLogs: migrated (0.012s) == 20220210084046-createWhatsAppLogEvent: migrating ======= == 20220210084046-createWhatsAppLogEvent: migrated (0.010s) == 20220218091245-addEventTimeToSmsLogEvent: migrating ======= == 20220218091245-addEventTimeToSmsLogEvent: migrated (0.005s) == 20220222150017-addConfigurationToChannelProviderConfig.js: migrating ======= == 20220222150017-addConfigurationToChannelProviderConfig.js: migrated (0.006s) == 20220228134354-changeMessageToText: migrating ======= == 20220228134354-changeMessageToText: migrated (0.005s) == 20220311121320-create-email-logs: migrating ======= == 20220311121320-create-email-logs: migrated (0.012s) == 20220311121733-create-email-log-events: migrating ======= == 20220311121733-create-email-log-events: migrated (0.009s) == 20220412081133-addContentToWhatsappLogs: migrating ======= == 20220412081133-addContentToWhatsappLogs: migrated (0.010s) == 20220502132055-addColumnToEmailLogs: migrating ======= == 20220502132055-addColumnToEmailLogs: migrated (0.004s) == 20220511123233-createAttributes: migrating ======= == 20220511123233-createAttributes: migrated (0.010s) == 20220511130347-addAtrributeIdToLeadContactsAndLeadAttributes: migrating ======= == 20220511130347-addAtrributeIdToLeadContactsAndLeadAttributes: migrated (0.009s) == 20220511230347-createOperators: migrating ======= == 20220511230347-createOperators: migrated (0.009s) == 20220512065933-createSegments: migrating ======= == 20220512065933-createSegments: migrated (0.008s) == 20220512065938-createSegmentRules: migrating ======= == 20220512065938-createSegmentRules: migrated (0.011s) == 20220512072242-createSegmentLeads: migrating ======= == 20220512072242-createSegmentLeads: migrated (0.008s) == 20220512101944-addColumnTotemplate: migrating ======= == 20220512101944-addColumnTotemplate: migrated (0.005s) == 20220528094500-createCampaigns: migrating ======= == 20220528094500-createCampaigns: migrated (0.008s) == 20220528095325-createCampaignSteps: migrating ======= == 20220528095325-createCampaignSteps: migrated (0.013s) == 20220528101028-createCampaignStepLogs: migrating ======= == 20220528101028-createCampaignStepLogs: migrated (0.010s) == 20220601085115-addGroupIdToSegmentRules: migrating ======= == 20220601085115-addGroupIdToSegmentRules: migrated (0.006s) == 20220622064050-removeColumnNameFromLead: migrating ======= == 20220622064050-removeColumnNameFromLead: migrated (0.006s) == 20220711193606-changeLeadAttributes: migrating ======= == 20220711193606-changeLeadAttributes: migrated (0.009s) == 20220711194639-changeSegment: migrating ======= == 20220711194639-changeSegment: migrated (0.006s) == 20220711195434-changeSegmentLead: migrating ======= == 20220711195434-changeSegmentLead: migrated (0.006s) == 20220711203154-changeAttribute: migrating ======= == 20220711203154-changeAttribute: migrated (0.016s) == 20220714182627-changeSmsLog: migrating ======= == 20220714182627-changeSmsLog: migrated (0.013s) == 20220722125426-changeChannelProviderConfigType: migrating ======= == 20220722125426-changeChannelProviderConfigType: migrated (0.006s) == 20220728113614-addTimeParamToTemplates: migrating ======= == 20220728113614-addTimeParamToTemplates: migrated (0.015s) == 20220805091032-removeUniqueConstraintInSmsLog: migrating ======= == 20220805091032-removeUniqueConstraintInSmsLog: migrated (0.018s) == 20220817083233-addExtraDataInTemplate: migrating ======= == 20220817083233-addExtraDataInTemplate: migrated (0.006s) == 20221115114803-addIndexInLeadContact: migrating ======= == 20221115114803-addIndexInLeadContact: migrated (0.008s) == 20230102073332-addMessageIdInSmsLogEvents: migrating ======= == 20230102073332-addMessageIdInSmsLogEvents: migrated (0.020s) == 20230131123303-dropSegmentRule: migrating ======= == 20230131123303-dropSegmentRule: migrated (0.079s) == 20230302085612-changeTemplate: migrating ======= == 20230302085612-changeTemplate: migrated (0.034s) == 20230306065249-renameTables: migrating ======= == 20230306065249-renameTables: migrated (0.027s) == 20230308125942-createFile: migrating ======= == 20230308125942-createFile: migrated (0.009s) == 20230309103910-addEntityIdInLeads: migrating ======= == 20230309103910-addEntityIdInLeads: migrated (0.016s) == 20230418101511-addIndexOnProcessedStatus: migrating ======= == 20230418101511-addIndexOnProcessedStatus: migrated (0.008s) == 20230530142347-addAttributesInTemplateContent: migrating ======= == 20230530142347-addAttributesInTemplateContent: migrated (0.005s) == 20230609100240-createLinks: migrating ======= == 20230609100240-createLinks: migrated (0.009s) == 20230609112904-addLinksToTemplateContents: migrating ======= == 20230609112904-addLinksToTemplateContents: migrated (0.008s) == 20230612072730-addIndexOnLeads: migrating ======= == 20230612072730-addIndexOnLeads: migrated (0.006s) == 20230615100020-createAttachments: migrating ======= == 20230615100020-createAttachments: migrated (0.014s) == 20230615135910-changeExternalIdType: migrating ======= == 20230615135910-changeExternalIdType: migrated (0.022s) == 20230616124809-template_content: migrating ======= == 20230616124809-template_content: migrated (0.007s) == 20230717095005-addLangInLead: migrating ======= == 20230717095005-addLangInLead: migrated (0.009s) == 20230719071242-removeIsPrimaryLC: migrating ======= == 20230719071242-removeIsPrimaryLC: migrated (0.006s) == 20230725070842-addContactInSmsLog: migrating ======= == 20230725070842-addContactInSmsLog: migrated (0.008s) == 20230802100347-removeExtraData: migrating ======= == 20230802100347-removeExtraData: migrated (0.018s) == 20230802122329-add_status_and_status_reason_to_template_contents: migrating ======= == 20230802122329-add_status_and_status_reason_to_template_contents: migrated (0.009s) == 20230808114413-changeChannelDefaultValue: migrating ======= == 20230808114413-changeChannelDefaultValue: migrated (0.010s) == 20230814104511-addRedirectUrlToCpc: migrating ======= == 20230814104511-addRedirectUrlToCpc: migrated (0.010s) == 20230817113833-update-link-reference: migrating ======= == 20230817113833-update-link-reference: migrated (0.029s) == 20230818081530-addCampaignStepsInSL: migrating ======= == 20230818081530-addCampaignStepsInSL: migrated (0.006s) == 20230904130320-addSizeInFile: migrating ======= == 20230904130320-addSizeInFile: migrated (0.006s) == 20240110145253-addVersionToTc: migrating ======= == 20240110145253-addVersionToTc: migrated (0.007s) == 20240226100738-addDraftInCampaign: migrating ======= == 20240226100738-addDraftInCampaign: migrated (0.009s) == 20240229034021-addStatusAndDataToChannelProviderConfig: migrating ======= == 20240229034021-addStatusAndDataToChannelProviderConfig: migrated (0.013s) == 20240913052835-addNameToChannelProviderConfig: migrating ======= == 20240913052835-addNameToChannelProviderConfig: migrated (0.009s) == 20240913055502-addChannelProviderConfigIdToTemplates: migrating ======= == 20240913055502-addChannelProviderConfigIdToTemplates: migrated (0.012s) == 20240913083100-addChannelProviderConfigIdToCampaignStep: migrating ======= == 20240913083100-addChannelProviderConfigIdToCampaignStep: migrated (0.013s) == 20240918092136-removeChannelIdUniqueCnstraintFromChannelProviderConfig: migrating ======= == 20240918092136-removeChannelIdUniqueCnstraintFromChannelProviderConfig: migrated (0.006s) == 20260728000001-create-outbox-events: migrating ======= MongoDB packages not found - skipping MongoDB instrumentation == 20260728000001-create-outbox-events: migrated (0.373s) == 20260919000001-update-sparq-magic-link-template: migrating ======= == 20260919000001-update-sparq-magic-link-template: migrated (0.007s) PASS e2e/template_content.test.js (5.1 s) ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710595","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2d47ee2-d8fa-4277-9030-ad299e99c4fa): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2d47ee2-d8fa-4277-9030-ad299e99c4fa): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2d47ee2-d8fa-4277-9030-ad299e99c4fa): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2d47ee2-d8fa-4277-9030-ad299e99c4fa): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":1,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 1 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (98d4652f-2321-4b6b-bbc8-fd33f3dbf4d2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=34ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710672","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1eafd4f9-fa5f-41a3-a286-c9bb6c5fea0f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1eafd4f9-fa5f-41a3-a286-c9bb6c5fea0f): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1eafd4f9-fa5f-41a3-a286-c9bb6c5fea0f): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1eafd4f9-fa5f-41a3-a286-c9bb6c5fea0f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":2,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9e9f24b4-1654-46dd-86c3-20ac6c9e407d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9e9f24b4-1654-46dd-86c3-20ac6c9e407d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=400 responseTime=10ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":758,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28f8fd2f-2baa-4c27-9907-5a7f1dbc7590): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28f8fd2f-2baa-4c27-9907-5a7f1dbc7590): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 758 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28f8fd2f-2baa-4c27-9907-5a7f1dbc7590): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=400 responseTime=3ms errorResponse=not_permitted at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710704","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e5ec8733-ac9a-4705-ad28-2574f6a7bd21): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e5ec8733-ac9a-4705-ad28-2574f6a7bd21): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e5ec8733-ac9a-4705-ad28-2574f6a7bd21): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e5ec8733-ac9a-4705-ad28-2574f6a7bd21): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":3,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 3 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38d24bda-a5d0-4aed-a568-8962d749ad62): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=22ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/2 body={} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f3002644-a135-45a7-8b37-a4373b5187bd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f3002644-a135-45a7-8b37-a4373b5187bd): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '2'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f3002644-a135-45a7-8b37-a4373b5187bd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/2 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710746","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e448cce8-8565-41f4-8c30-4e3a3ecf711b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e448cce8-8565-41f4-8c30-4e3a3ecf711b): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e448cce8-8565-41f4-8c30-4e3a3ecf711b): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e448cce8-8565-41f4-8c30-4e3a3ecf711b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":4,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 4 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2520c4ac-5265-4b17-809c-d8f9b608c0f9): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=21ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/3 body={"template_content":"{\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"byeee\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '3'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): UPDATE "pepper_template_contents" SET "data"=$1,"updated_at"=$2,"version"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (04c58b55-2f6d-4300-b7e7-f2284307c755): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/3 status=200 responseTime=28ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/3 body={} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6cd2c9c8-67b3-4462-9d65-9ef123cec62a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6cd2c9c8-67b3-4462-9d65-9ef123cec62a): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '3'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6cd2c9c8-67b3-4462-9d65-9ef123cec62a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/3 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710816","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (10f1ffe5-2df2-4f9e-be63-254e0bd123fe): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (10f1ffe5-2df2-4f9e-be63-254e0bd123fe): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (10f1ffe5-2df2-4f9e-be63-254e0bd123fe): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (10f1ffe5-2df2-4f9e-be63-254e0bd123fe): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":5,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 5 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb47995e-210e-4dd9-82ca-f02fe6552561): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=21ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/1792768710845 body={"template_content":"{\"data\":{\"message\":\"Yeah english hain,isme typo nahi hain\"}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d88f6d7-0fac-4b76-906e-0d8c5dab1601): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d88f6d7-0fac-4b76-906e-0d8c5dab1601): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '1792768710845'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d88f6d7-0fac-4b76-906e-0d8c5dab1601): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/1792768710845 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710852","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8e0cff0-9ae7-4e60-a8b3-5e954ea2eb70): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8e0cff0-9ae7-4e60-a8b3-5e954ea2eb70): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8e0cff0-9ae7-4e60-a8b3-5e954ea2eb70): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8e0cff0-9ae7-4e60-a8b3-5e954ea2eb70): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":6,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 6 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70758b93-2ffa-4268-b44a-6897e9d4a224): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=46ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 1 AND "channel_provider_configs"."organisation_id" = 1212960565)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 1 AND "channel_provider_config"."organisation_id" = 1212960565)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'PENDING' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=5&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:416:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/1/message_templates', params: { hsm_id: '5', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/1/message_templates?hsm_id=5&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/1/message_templates', search: '?hsm_id=5&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/1/message_templates?hsm_id=5&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/1/message_templates?hsm_id=5&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=5&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:416:5) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768710971","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1244d190-ae40-45ea-a920-9b5a424ba2d5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1244d190-ae40-45ea-a920-9b5a424ba2d5): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1244d190-ae40-45ea-a920-9b5a424ba2d5): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1244d190-ae40-45ea-a920-9b5a424ba2d5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":7,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 7 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 7); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 7); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7b582876-774f-4067-9fcb-c2f8a5806e1e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=38ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 1 AND "channel_provider_configs"."organisation_id" = 1212960565)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 1 AND "channel_provider_config"."organisation_id" = 1212960565)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=6&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:475:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/1/message_templates', params: { hsm_id: '6', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/1/message_templates?hsm_id=6&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/1/message_templates', search: '?hsm_id=6&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/1/message_templates?hsm_id=6&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/1/message_templates?hsm_id=6&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=6&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:475:5) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/6 body={} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae7b77bc-802b-410e-b424-dcfdb49926b7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae7b77bc-802b-410e-b424-dcfdb49926b7): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '6'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae7b77bc-802b-410e-b424-dcfdb49926b7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/6 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768711047","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2b97a80d-5bbb-410a-a9f1-63b87e2b0326): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2b97a80d-5bbb-410a-a9f1-63b87e2b0326): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2b97a80d-5bbb-410a-a9f1-63b87e2b0326): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2b97a80d-5bbb-410a-a9f1-63b87e2b0326): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":8,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 8 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d670132-7d44-4293-bce5-d8a79833a216): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=47ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 7); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 1 AND "channel_provider_configs"."organisation_id" = 1212960565)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 7); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 1 AND "channel_provider_config"."organisation_id" = 1212960565)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { error: { message: ' Rate limit hit', type: 'OAuthException', code: 130429, error_data: { messaging_product: 'whatsapp', details: 'Message failed to send because there were too many messages sent from this phone number in a short period of time' }, error_subcode: 2494055, fbtrace_id: 'Az8or2yhqkZfEZ-_4Qn_Bam' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"status_reason"=$2,"updated_at"=$3 WHERE ("deleted_at" IS NULL AND "id" = $4) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=7&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:549:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/1/message_templates', params: { hsm_id: '7', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/1/message_templates?hsm_id=7&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/1/message_templates', search: '?hsm_id=7&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/1/message_templates?hsm_id=7&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/1/message_templates?hsm_id=7&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/1/message_templates?hsm_id=7&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:549:5) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/7 body={} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (77ada6b7-48b8-4ceb-ad57-976676c2e60e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (77ada6b7-48b8-4ceb-ad57-976676c2e60e): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1212960565') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '7'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (77ada6b7-48b8-4ceb-ad57-976676c2e60e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/7 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":1,"channel_id":1,"name":"1792768711127","priority":"high","default_lang_code":"wa_1792768710494"}} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6d2fd732-f60e-47bc-a403-f9c4087bb774): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6d2fd732-f60e-47bc-a403-f9c4087bb774): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6d2fd732-f60e-47bc-a403-f9c4087bb774): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6d2fd732-f60e-47bc-a403-f9c4087bb774): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":9,\"lang_code\":\"wa_1792768710494\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"HEADER\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1212960565"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1e17fefb-5dcd-4a57-ba2e-f7e392b7d866): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1e17fefb-5dcd-4a57-ba2e-f7e392b7d866): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 9 AND "templates"."organisation_id" = '1212960565')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1e17fefb-5dcd-4a57-ba2e-f7e392b7d866): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1e17fefb-5dcd-4a57-ba2e-f7e392b7d866): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=400 responseTime=12ms errorResponse=failed_upload at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a236ed1c-5bc1-4ab6-9eb1-4e5dc9a8bc13): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a236ed1c-5bc1-4ab6-9eb1-4e5dc9a8bc13): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'crud-fixture'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a236ed1c-5bc1-4ab6-9eb1-4e5dc9a8bc13): CREATE OR REPLACE FUNCTION pg_temp.testfunc(OUT response "pepper_channel_providers", OUT sequelize_caught_exception text) RETURNS RECORD AS $func_f8a17aeffab949c1ade62b234acbcf2d$ BEGIN INSERT INTO "pepper_channel_providers" ("id","name","created_at","updated_at","deleted_at") VALUES (DEFAULT,'crud-fixture',NOW(),'2026-10-23 20:48:31.168 +05:30',NULL) RETURNING * INTO response; EXCEPTION WHEN unique_violation THEN GET STACKED DIAGNOSTICS sequelize_caught_exception = PG_EXCEPTION_DETAIL; END $func_f8a17aeffab949c1ade62b234acbcf2d$ LANGUAGE plpgsql; SELECT (testfunc.response)."id", (testfunc.response)."name", (testfunc.response)."created_at", (testfunc.response)."updated_at", (testfunc.response)."deleted_at", testfunc.sequelize_caught_exception FROM pg_temp.testfunc(); DROP FUNCTION IF EXISTS pg_temp.testfunc(); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a236ed1c-5bc1-4ab6-9eb1-4e5dc9a8bc13): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711180","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cc390249-eeac-46f9-b96d-bc5bb7c8a0a4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cc390249-eeac-46f9-b96d-bc5bb7c8a0a4): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cc390249-eeac-46f9-b96d-bc5bb7c8a0a4): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cc390249-eeac-46f9-b96d-bc5bb7c8a0a4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":10,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 10 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (45774222-456d-40b5-88d2-fdac73a21c10): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711207","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (678a184a-33ea-4da7-a94b-33f52c82ea17): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (678a184a-33ea-4da7-a94b-33f52c82ea17): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (678a184a-33ea-4da7-a94b-33f52c82ea17): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (678a184a-33ea-4da7-a94b-33f52c82ea17): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":11,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"hhh\"}}"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c0eaf44-8524-43e1-afad-8bfb400a79df): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c0eaf44-8524-43e1-afad-8bfb400a79df): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=400 responseTime=1ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":{"template_id":610,"lang_code":"email_1792768710495","data":{"message":"hhh"}}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e1e3243-889f-4654-82ae-05ba857f69b2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e1e3243-889f-4654-82ae-05ba857f69b2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=400 responseTime=1ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711220","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0a993db0-7819-41c7-a24d-a0228584b070): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0a993db0-7819-41c7-a24d-a0228584b070): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0a993db0-7819-41c7-a24d-a0228584b070): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0a993db0-7819-41c7-a24d-a0228584b070): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":12,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 12 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3b84f0fd-c139-4592-a580-6b3b50526f45): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=11ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/9 body={} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d181fd12-f37e-421d-b58c-4c4ed34b6e6e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d181fd12-f37e-421d-b58c-4c4ed34b6e6e): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '9'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d181fd12-f37e-421d-b58c-4c4ed34b6e6e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/9 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711245","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cf2ab92e-44fe-42db-9649-fbf47fd861be): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cf2ab92e-44fe-42db-9649-fbf47fd861be): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cf2ab92e-44fe-42db-9649-fbf47fd861be): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cf2ab92e-44fe-42db-9649-fbf47fd861be): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=9ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":13,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 13 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ae93d0f8-f19d-403f-a28c-c0967d6884e4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/10 body={"template_content":"{\"template_id\":13,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Yeah english hain,isme typo nahi hain\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '10'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): UPDATE "pepper_template_contents" SET "data"=$1,"updated_at"=$2,"version"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a3258e82-4dbb-4bce-9089-40cd935f4ec3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/10 status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/10 body={} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (121283d5-de35-4b8e-a225-bdff3b167f90): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (121283d5-de35-4b8e-a225-bdff3b167f90): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '10'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (121283d5-de35-4b8e-a225-bdff3b167f90): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/10 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/10 body={"template_content":"{\"template_id\":13,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Yeah english hain,isme typo nahi hain\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f025b005-49d7-4c3a-9883-7a30629c2a1d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f025b005-49d7-4c3a-9883-7a30629c2a1d): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '10'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined 0 GcError: fields_unchanged at template_contents.beforeSave (/workspace/source/packages/server/models/template_content.js:75:17) at template_contents.runHooks (/workspace/source/node_modules/sequelize/src/hooks.js:131:18) at model.save (/workspace/source/node_modules/sequelize/src/model.js:4090:30) at processTicksAndRejections (node:internal/process/task_queues:104:5) at model.update (/workspace/source/node_modules/sequelize/src/model.js:4343:12) at /workspace/source/packages/server/routes/template_content.js:78:7 at cors (/workspace/source/node_modules/@koa/cors/index.js:109:16) at /workspace/source/node_modules/sequelize/src/sequelize.js:1197:18 { status: 400, code: 'fields_unchanged', value: {} } 83 | ); 84 | } catch (err) { > 85 | console.error(err); | ^ 86 | } 87 | ctx.body = { 88 | id: template_content.id, at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at error (routes/template_content.js:85:15) at cors (../../node_modules/@koa/cors/index.js:109:16) at ../../node_modules/sequelize/src/sequelize.js:1197:18 console.info INFO undefined 0 Executing (f025b005-49d7-4c3a-9883-7a30629c2a1d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/10 status=200 responseTime=23ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/10 body={} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (298128b5-74ce-4fea-ac1d-ad7b1946c58b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (298128b5-74ce-4fea-ac1d-ad7b1946c58b): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '10'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (298128b5-74ce-4fea-ac1d-ad7b1946c58b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/10 status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711331","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bccc7fc4-38f4-4b84-95be-fbef53f391bc): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bccc7fc4-38f4-4b84-95be-fbef53f391bc): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bccc7fc4-38f4-4b84-95be-fbef53f391bc): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bccc7fc4-38f4-4b84-95be-fbef53f391bc): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":14,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 14 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3dc00bf6-423a-4dc8-b9a4-c6837c3aa5f4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=51ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/1792768711396 body={"template_content":"{\"data\":{\"message\":\"Yeah english hain,isme typo nahi hain\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bb84e1f7-4d39-4293-9676-7b1e12adf527): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bb84e1f7-4d39-4293-9676-7b1e12adf527): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '973') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '1792768711396'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (bb84e1f7-4d39-4293-9676-7b1e12adf527): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/1792768711396 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711402","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (adcd55a5-2024-43f2-b932-ee3cf056b38e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (adcd55a5-2024-43f2-b932-ee3cf056b38e): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (adcd55a5-2024-43f2-b932-ee3cf056b38e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (adcd55a5-2024-43f2-b932-ee3cf056b38e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=33ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":15,\"lang_code\":\"email_1792768710495\",\"data\":{\"HtmlPart\":\"

This is a link {{user_name}} in the HTML content.

\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 15 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d016fd67-4678-4e22-8263-38119b906744): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=14ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711454","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db070c49-393e-48b3-8bfe-a1e8f62e9057): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db070c49-393e-48b3-8bfe-a1e8f62e9057): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db070c49-393e-48b3-8bfe-a1e8f62e9057): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db070c49-393e-48b3-8bfe-a1e8f62e9057): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":16,\"lang_code\":\"email_1792768710495\",\"data\":{\"HtmlPart\":\"

Hello

\",\"message\":\"This is a link to https://example.com.\",\"object\":{\"message\":\"This is a link to https://example.com.\"}}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 16 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 16); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 16); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7eb2cdeb-45bf-4ff6-aebd-75533bb24434): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=22ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711484","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4c25ae-ac92-4787-82bd-5a9b2c88804d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4c25ae-ac92-4787-82bd-5a9b2c88804d): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4c25ae-ac92-4787-82bd-5a9b2c88804d): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4c25ae-ac92-4787-82bd-5a9b2c88804d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":17,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Hello, {{name}}! Your balance is {{balance}}.\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 17 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (74ef65fc-274f-4612-a6db-9ecdc8c0ea35): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=11ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711510","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (62b8c16b-4e40-4a95-94df-ce011e49160d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (62b8c16b-4e40-4a95-94df-ce011e49160d): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (62b8c16b-4e40-4a95-94df-ce011e49160d): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (62b8c16b-4e40-4a95-94df-ce011e49160d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=9ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":18,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Hello, {{name}}! Your balance is {{balance}}.\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 18 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (01fb5ee1-dd68-4e0a-bb0d-d36338fd9d48): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=11ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711537","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c9eb7b6b-153a-49bb-80b0-32030a019e96): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c9eb7b6b-153a-49bb-80b0-32030a019e96): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c9eb7b6b-153a-49bb-80b0-32030a019e96): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c9eb7b6b-153a-49bb-80b0-32030a019e96): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":19,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Hello, {{name}}. Your balance is {{balance}}.\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 19 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b1ce41df-a173-40f4-8ffb-484d2c9019a9): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 16); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":2,"channel_id":2,"name":"1792768711574","priority":"high","default_lang_code":"email_1792768710495"}} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2883e2c4-98ad-4913-948f-3b0fbd231a8f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2883e2c4-98ad-4913-948f-3b0fbd231a8f): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2883e2c4-98ad-4913-948f-3b0fbd231a8f): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2883e2c4-98ad-4913-948f-3b0fbd231a8f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":20,\"lang_code\":\"email_1792768710495\",\"data\":{\"message\":\"Hello, {{name}}. Your balance is {{balance}}.\"}}"} headers={"x-gct-org-id":"973"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 20 AND "templates"."organisation_id" = '973')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4f7fb4c9-911f-486f-8b53-88d98428a6f5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=11ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":3,"channel_id":1,"name":"1792768711616","priority":"high","default_lang_code":"meta_callback_1792768710496"}} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232b080-6b60-4b08-918c-a5ec38d4230f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232b080-6b60-4b08-918c-a5ec38d4230f): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232b080-6b60-4b08-918c-a5ec38d4230f): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232b080-6b60-4b08-918c-a5ec38d4230f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":21,\"lang_code\":\"meta_callback_1792768710496\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 21 AND "templates"."organisation_id" = '1681638339')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26fd0a87-ba3a-4953-8bc9-9ae7a161a5e0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=38ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 3 AND "channel_provider_configs"."organisation_id" = 1681638339)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 3 AND "channel_provider_config"."organisation_id" = 1681638339)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=18&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1302:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/2/message_templates', params: { hsm_id: '18', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/2/message_templates?hsm_id=18&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/2/message_templates', search: '?hsm_id=18&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/2/message_templates?hsm_id=18&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/2/message_templates?hsm_id=18&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=18&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1302:5) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/18 body={} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3313baa6-f800-4ba0-a1a7-808984a2445a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3313baa6-f800-4ba0-a1a7-808984a2445a): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '18'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3313baa6-f800-4ba0-a1a7-808984a2445a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/18 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/3 body={"object":"whatsapp_business_account","entry":[{"id":"","time":"aaaa","changes":[{"value":{"event":"APPROVED","message_template_id":18,"message_template_name":"18_1792768711689","message_template_language":"1792768711616","reason":"NONE"},"field":"message_template_status_update"}]}]} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9abea8d7-fe83-4493-9bf9-c706ba3fe212): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9abea8d7-fe83-4493-9bf9-c706ba3fe212): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '3'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9abea8d7-fe83-4493-9bf9-c706ba3fe212): UPDATE "pepper_template_contents" SET "status"=$1,"status_reason"=$2,"updated_at"=$3 WHERE ("deleted_at" IS NULL AND "id" = $4) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9abea8d7-fe83-4493-9bf9-c706ba3fe212): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/3 status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/18 body={} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d24374b6-1e7b-44a0-9140-cc8b63bfa7ae): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d24374b6-1e7b-44a0-9140-cc8b63bfa7ae): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '18'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d24374b6-1e7b-44a0-9140-cc8b63bfa7ae): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/18 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":3,"channel_id":1,"name":"1792768711717","priority":"high","default_lang_code":"meta_callback_1792768710496"}} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (829af0b6-0ada-4fb2-ad0c-f39440cc7aa3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (829af0b6-0ada-4fb2-ad0c-f39440cc7aa3): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (829af0b6-0ada-4fb2-ad0c-f39440cc7aa3): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (829af0b6-0ada-4fb2-ad0c-f39440cc7aa3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":22,\"lang_code\":\"meta_callback_1792768710496\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 22 AND "templates"."organisation_id" = '1681638339')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50d95524-408f-4639-b654-1938584d6a06): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=35ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 3 AND "channel_provider_configs"."organisation_id" = 1681638339)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 3 AND "channel_provider_config"."organisation_id" = 1681638339)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=19&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1400:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/2/message_templates', params: { hsm_id: '19', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/2/message_templates?hsm_id=19&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/2/message_templates', search: '?hsm_id=19&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/2/message_templates?hsm_id=19&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/2/message_templates?hsm_id=19&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=19&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1400:5) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/19 body={} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (309a1a08-c667-435e-b42f-4179a71421af): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (309a1a08-c667-435e-b42f-4179a71421af): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '19'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (309a1a08-c667-435e-b42f-4179a71421af): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/19 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/3 body={"object":"whatsapp_business_account","entry":[{"id":"","time":"aaaa","changes":[{"value":{"event":"REJECTED","message_template_id":19,"message_template_name":"19_1792768711779","message_template_language":"1792768711717","reason":"NONE"},"field":"message_template_status_update"}]}]} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c668696-8655-4511-a8e8-3eb85b2b9dd8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c668696-8655-4511-a8e8-3eb85b2b9dd8): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '3'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c668696-8655-4511-a8e8-3eb85b2b9dd8): UPDATE "pepper_template_contents" SET "status"=$1,"status_reason"=$2,"updated_at"=$3 WHERE ("deleted_at" IS NULL AND "id" = $4) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c668696-8655-4511-a8e8-3eb85b2b9dd8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/3 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/19 body={} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b567948c-7548-4389-9df7-649d174b8de2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b567948c-7548-4389-9df7-649d174b8de2): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '19'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (b567948c-7548-4389-9df7-649d174b8de2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/19 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":3,"channel_id":1,"name":"1792768711799","priority":"high","default_lang_code":"meta_callback_1792768710496"}} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c4a153b0-324e-41f0-a47b-3182040a98c0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c4a153b0-324e-41f0-a47b-3182040a98c0): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c4a153b0-324e-41f0-a47b-3182040a98c0): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c4a153b0-324e-41f0-a47b-3182040a98c0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":23,\"lang_code\":\"meta_callback_1792768710496\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello, {{otp}}! Your favorite color is {{age}}.\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"}]}}"} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 23 AND "templates"."organisation_id" = '1681638339')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0d7da148-92bb-4d7e-a6b3-ca1be6fb2590): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=35ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 3 AND "channel_provider_configs"."organisation_id" = 1681638339)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 3 AND "channel_provider_config"."organisation_id" = 1681638339)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=20&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1492:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/2/message_templates', params: { hsm_id: '20', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/2/message_templates?hsm_id=20&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/2/message_templates', search: '?hsm_id=20&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/2/message_templates?hsm_id=20&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/2/message_templates?hsm_id=20&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/2/message_templates?hsm_id=20&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1492:5) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/template_contents/20 body={} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28114fbc-5400-4bb2-b5b9-11936effff9d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28114fbc-5400-4bb2-b5b9-11936effff9d): SELECT "template_contents"."id", "template_contents"."data", "template_contents"."status", "template_contents"."status_reason", "language"."code" AS "language.code", "language"."name" AS "language.name", "template"."id" AS "template.id", "template"."name" AS "template.name", "template->channel"."id" AS "template.channel.id", "template->channel"."name" AS "template.channel.name" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "language" ON "template_contents"."lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') INNER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '20'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (28114fbc-5400-4bb2-b5b9-11936effff9d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/template_contents/20 status=200 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 23 AND "templates"."organisation_id" = '1681638339')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1681638339' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9306006817')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 23) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'meta_callback_1792768710496' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768711615 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (459cf86b-d7a5-425d-ad8e-2f69e60b1c23): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 1 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/3 body={"object":"whatsapp_business_account","entry":[{"id":"WHATSAPP_BUSINESS_ACCOUNT_ID","changes":[{"value":{"messaging_product":"whatsapp","metadata":{"display_phone_number":"BUSINESS_DISPLAY_PHONE_NUMBER","phone_number_id":"BUSINESS_PHONE_NUMBER_ID"},"statuses":[{"id":"1792768711897","status":"sent","timestamp":1792768711909,"recipient_id":"CUSTOMER_PHONE_NUMBER","conversation":{"id":"CONVERSATION_ID","expiration_timestamp":"CONVERSATION_EXPIRATION_TIMESTAMP","origin":{"type":"user_initiated"}},"pricing":{"billable":true,"pricing_model":"CBP","category":"user_initiated"}}]},"field":"messages"}]}]} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d5c93879-22d6-4b4c-a322-5b0782573e52): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d5c93879-22d6-4b4c-a322-5b0782573e52): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '3'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d5c93879-22d6-4b4c-a322-5b0782573e52): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/3 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768711897'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '1792768711897'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '1792768711897') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":3,"channel_id":1,"name":"1792768711932","priority":"high","default_lang_code":"meta_callback_1792768710496"}} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02ef092e-7e7a-4a24-b164-7ce4ba27ae58): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02ef092e-7e7a-4a24-b164-7ce4ba27ae58): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02ef092e-7e7a-4a24-b164-7ce4ba27ae58): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02ef092e-7e7a-4a24-b164-7ce4ba27ae58): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":24,\"lang_code\":\"meta_callback_1792768710496\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"}]}}"} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 24 AND "templates"."organisation_id" = '1681638339')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (226af9cd-6643-4718-986a-d8c8a410dc59): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=19ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/21 body={"template_content":"{\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"byeee\"}]}}"} headers={"x-gct-org-id":"1681638339"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1681638339') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '21'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): UPDATE "pepper_template_contents" SET "data"=$1,"updated_at"=$2,"version"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e3005574-541c-439b-9d82-2515f033f5a8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/21 status=200 responseTime=18ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 3 AND "channel_provider_configs"."organisation_id" = 1681638339)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 3 AND "channel_provider_config"."organisation_id" = 1681638339)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Meta template delet response { success: 'true' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":4,"channel_id":1,"name":"1792768712018","priority":"high","default_lang_code":"eng"}} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f0932f33-2308-4f99-9a17-556e4c49e406): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f0932f33-2308-4f99-9a17-556e4c49e406): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f0932f33-2308-4f99-9a17-556e4c49e406): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f0932f33-2308-4f99-9a17-556e4c49e406): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":25,\"lang_code\":\"eng\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"IMAGE\",\"media\":{},\"text\":\"Hello, {{otp}}! Your favorite color is {{age}}.\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"FOOTER\",\"text\":\"WhatsApp Business Team\"},{\"type\":\"URL\",\"url\":\"http://localhost:8080\",\"buttons\":[{\"type\":\"URL\",\"text\":\"URL\",\"url\":\"http://localhost:8080\"}]}]}}"} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 25 AND "templates"."organisation_id" = '535')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 25); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): INSERT INTO "pepper_files" ("id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 25); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6f4ebd47-c940-4886-b0ba-8842170395d2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=43ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 4 AND "channel_provider_configs"."organisation_id" = 535)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 4 AND "channel_provider_config"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error from coulson AxiosError [NetConnectNotAllowedError]: Nock: Disallowed net connect for "galaxycard.s3.amazonaws.com:443/0b3d97d3d834524641379e6ca1428fb2/original" at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at ErroringClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at ErroringClientRequest.emit (node:events:514:20) at ErroringClientRequest. (/workspace/source/node_modules/nock/lib/intercept.js:245:12) at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at createHeaderHandler (/workspace/source/packages/server/providers/whatsapp/meta.js:38:24) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:254:49) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1833:5) { isAxiosError: true, code: 'ENETUNREACH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, url: 'https://galaxycard.s3.amazonaws.com/0b3d97d3d834524641379e6ca1428fb2/original', allowAbsoluteUrls: true, method: 'get', data: undefined }, request: Writable { _events: { close: [Function], error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17580812, Symbol(kBufferedValue): null }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/0b3d97d3d834524641379e6ca1428fb2/original', method: 'GET', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'galaxycard.s3.amazonaws.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/0b3d97d3d834524641379e6ca1428fb2/original' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 4, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: ErroringClientRequest { _events: [Object], _maxListeners: undefined, outputData: [Array], outputSize: 75, writable: true, destroyed: false, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, _header: 'undefined undefined HTTP/1.1\r\n' + 'Connection: keep-alive\r\n' + 'Content-Length: 0\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], _redirectable: [Circular *1], _eventsCount: 6, Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): null, Symbol(kOutHeaders): null, Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false }, _currentUrl: 'https://galaxycard.s3.amazonaws.com/0b3d97d3d834524641379e6ca1428fb2/original', Symbol(shapeMode): true, Symbol(kCapture): false }, [cause]: NetConnectNotAllowedError { name: 'NetConnectNotAllowedError', code: 'ENETUNREACH', message: 'Nock: Disallowed net connect for "galaxycard.s3.amazonaws.com:443/0b3d97d3d834524641379e6ca1428fb2/original"' } } 77 | } 78 | } catch (error) { > 79 | console.error('Error from coulson', error); | ^ 80 | } 81 | }; 82 | at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at error (providers/whatsapp/meta.js:79:13) at Object.createTemplate (providers/whatsapp/meta.js:254:49) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1833:5) console.info INFO undefined WA template response { success: true, status: 'PENDING' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=22&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1833:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/9/message_templates', params: { hsm_id: '22', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/9/message_templates?hsm_id=22&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/9/message_templates', search: '?hsm_id=22&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [Array], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/9/message_templates?hsm_id=22&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/9/message_templates?hsm_id=22&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=22&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1833:5) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 25 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 25) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0b1c9b92-1113-4a21-a3fe-5330901899ca): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 2 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":4,"name":"email_low_priority","channel_id":1,"default_lang_code":"eng","organisation_id":535,"priority":"low"}} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (56351346-3b0e-4954-8cd1-58b0b60aee75): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (56351346-3b0e-4954-8cd1-58b0b60aee75): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (56351346-3b0e-4954-8cd1-58b0b60aee75): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (56351346-3b0e-4954-8cd1-58b0b60aee75): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":26,\"lang_code\":\"eng\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"BUTTONS\",\"url\":\"http://localhost:8080\",\"buttons\":[{\"type\":\"URL\",\"text\":\"URL\",\"url\":\"http://localhost:8080\"}]}]}}"} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = '535')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (330408b5-4f0b-4d03-881d-4ad742731936): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=53ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 4 AND "channel_provider_configs"."organisation_id" = 535)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 4 AND "channel_provider_config"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=23&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:1936:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/9/message_templates', params: { hsm_id: '23', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/9/message_templates?hsm_id=23&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/9/message_templates', search: '?hsm_id=23&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [Array], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/9/message_templates?hsm_id=23&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/9/message_templates?hsm_id=23&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=23&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:1936:5) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '8047921290')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 3); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69cf802d-892a-4732-99f1-153b9db8c0a6): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '8047921292')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ddca21a0-c577-4a96-9dac-6a0590bd397f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9667197877')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e022578a-8f8f-4722-9df7-95ba44f2fdeb): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '6377035292')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4e5d4995-bb67-45d0-b0a7-f6948ca638e7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9812031557')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 7); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744fb9a3-340a-4970-8ddd-f9b99ce0b156): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9991485461')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (88b763d0-4bc5-4b4b-b11a-04117ed89ec4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '8397954233')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (450e0e82-4aca-4069-9999-5eacf13150d7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9991565461')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a0206ee8-a758-42b3-b7d0-956fc9cbc79e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '8802077050')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cc3589f-a116-463b-8b34-a6c347ac7fac): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 26 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '7988439060')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 26) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (09f90e3d-ea30-404a-ba27-0320cb90cf40): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e29fa949-972e-4409-b5bb-c0893ee5cd72): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."template_content_id" = 23 LIMIT 100 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e29fa949-972e-4409-b5bb-c0893ee5cd72): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '018df7f8'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '5cbb8d8e'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '7c264b42'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'c594e9dd'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 3) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '3dc45741'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 4) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'c2d46d4f'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 5) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 3) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'eb505918'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 6) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '2c4c6abe'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 7) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '8b469586'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 8) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'a16bd526'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 9) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 4) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 5) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 6) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 7) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 8) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 9) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 3) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 4) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 5) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 6) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 7) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 8) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 9) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (3, 4, 5, 6, 7, 8, 9, 10, 11, 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":4,"name":"email_low_priority","channel_id":1,"default_lang_code":"eng","organisation_id":535,"priority":"low"}} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (914a6a3b-9986-4de2-9e9e-9daf3cda014d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (914a6a3b-9986-4de2-9e9e-9daf3cda014d): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (914a6a3b-9986-4de2-9e9e-9daf3cda014d): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (914a6a3b-9986-4de2-9e9e-9daf3cda014d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":27,\"lang_code\":\"eng\",\"data\":{\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello World\"},{\"type\":\"BODY\",\"text\":\"Welcome and congratulations!! This message demonstrates your ability to send a message notification from WhatsApp Business Platform. Thank you for taking the time to test with us.\"},{\"type\":\"BUTTONS\",\"url\":\"http://localhost:8080\",\"buttons\":[{\"type\":\"URL\",\"text\":\"URL\",\"url\":\"http://localhost:8080\"}]}]}}"} headers={"x-gct-org-id":"535"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 27 AND "templates"."organisation_id" = '535')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (08faf9b5-9cfc-440b-ba06-707d844aea8c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=57ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 4 AND "channel_provider_configs"."organisation_id" = 535)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'meta') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 4 AND "channel_provider_config"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined WA template response { success: true, status: 'pending' } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_template_contents" SET "status"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND "id" = $3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.error ERROR undefined Error meta template deletion AxiosError: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=24&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at AxiosError.from (/workspace/source/node_modules/axios/dist/node/axios.cjs:1355:24) at RedirectableRequest.handleRequestError (/workspace/source/node_modules/axios/dist/node/axios.cjs:4082:25) at RedirectableRequest.emit (node:events:526:24) at OverriddenClientRequest.eventHandlers. (/workspace/source/node_modules/follow-redirects/index.js:56:24) at OverriddenClientRequest.emit (node:events:514:20) at Socket. (/workspace/source/node_modules/propagate/index.js:64:17) at Socket.emit (node:events:526:24) at /workspace/source/node_modules/nock/lib/socket.js:101:14 at processTicksAndRejections (node:internal/process/task_queues:85:11) at Axios.request (/workspace/source/node_modules/axios/dist/node/axios.cjs:5517:41) at processTicksAndRejections (node:internal/process/task_queues:104:5) at Object.createTemplate (/workspace/source/packages/server/providers/whatsapp/meta.js:313:28) at createWATemplate (/workspace/source/packages/server/providers/whatsapp/index.js:50:9) at queue (/workspace/source/packages/server/queue/consume.js:157:11) at Object. (/workspace/source/packages/server/e2e/template_content.test.js:2147:5) { isAxiosError: true, code: 'ERR_NOCK_NO_MATCH', config: [Object: null prototype] { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true, advertiseZstdAcceptEncoding: false, validateStatusUndefinedResolves: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function (anonymous)], headers: Object [AxiosHeaders] { Accept: '*/*', 'Content-Type': 'application/json', Authorization: 'Bearer local-meta-token', 'User-Agent': 'axios/1.18.1', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'delete', url: 'https://graph.facebook.com/v17.0/9/message_templates', params: { hsm_id: '24', name: 'undefined' }, allowAbsoluteUrls: true, data: undefined }, request: Writable { _events: { close: undefined, error: [Function: handleRequestError], prefinish: undefined, finish: undefined, drain: undefined, response: [Function: handleResponse], socket: [Array], abort: undefined }, _writableState: WritableState { highWaterMark: 65536, length: 0, corked: 0, onwrite: [Function (anonymous)], writelen: 0, bufferedIndex: 0, pendingcb: 0, Symbol(kState): 17581054, Symbol(kBufferedValue): null, Symbol(kErroredValue): [Error] }, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'https:', path: '/v17.0/9/message_templates?hsm_id=24&name=undefined', method: 'DELETE', headers: [Object: null prototype], agents: [Object], auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: [Object: null prototype], http2Options: undefined, hostname: 'graph.facebook.com', port: '', agent: undefined, sensitiveHeaders: [], insecureHTTPParser: false, nativeProtocols: [Object], pathname: '/v17.0/9/message_templates', search: '?hsm_id=24&name=undefined' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _eventsCount: 3, _onNativeResponse: [Function (anonymous)], _headerFilter: /^(?:Authorization|Proxy-Authorization|Cookie)$/i, _currentRequest: OverriddenClientRequest { _events: [Object], _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: false, _closed: false, _header: null, _keepAliveTimeout: 0, _onPendingData: [Function: nop], method: 'DELETE', write: [Function (anonymous)], end: [Function (anonymous)], flushHeaders: [Function (anonymous)], req: [Circular *1], options: [Object], interceptors: [Array], response: [IncomingMessage], requestBodyBuffers: [], playbackStarted: false, readyToStartPlaybackOnSocketEvent: false, _eventsCount: 2, _redirectable: [Circular *2], Symbol(shapeMode): true, Symbol(kCapture): false, Symbol(kBytesWritten): 0, Symbol(kNeedDrain): false, Symbol(corked): 0, Symbol(kChunkedBuffer): [], Symbol(kChunkedLength): 0, Symbol(kSocket): [Socket], Symbol(kOutHeaders): [OutgoingHeaders ], Symbol(errored): null, Symbol(kWritableFinished): false, Symbol(kEndCallbacks): null, Symbol(kFlushError): null, Symbol(kHighWaterMark): 65536, Symbol(kRejectNonStandardBodyWrites): false, Symbol(kLenientCache): false, Symbol(kPath): '/v17.0/9/message_templates?hsm_id=24&name=undefined', Symbol(kError): [Error] }, _currentUrl: 'https://graph.facebook.com/v17.0/9/message_templates?hsm_id=24&name=undefined', _timeout: null, Symbol(shapeMode): true, Symbol(kCapture): false }, status: 404, [cause]: Error: Nock: No match for request { "method": "DELETE", "url": "https://graph.facebook.com/v17.0/9/message_templates?hsm_id=24&name=undefined", "headers": { "accept": "*/*", "content-type": "application/json", "authorization": "Bearer local-meta-token", "user-agent": "axios/1.18.1", "accept-encoding": "gzip, compress, deflate, br" } } at InterceptedRequestRouter.startPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:346:21) at InterceptedRequestRouter.maybeStartPlayback (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:268:12) at InterceptedRequestRouter.connectSocket (/workspace/source/node_modules/nock/lib/intercepted_request_router.js:140:12) at /workspace/source/node_modules/nock/lib/intercepted_request_router.js:78:33 at processTicksAndRejections (node:internal/process/task_queues:85:11) { code: 'ERR_NOCK_NO_MATCH', status: 404, statusCode: 404 } } 325 | console.info('Meta template delet response', metaResponse.data); 326 | } catch (err) { > 327 | console.error('Error meta template deletion', err); | ^ 328 | } 329 | } 330 | }; at console. [as error] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at Object.error [as createTemplate] (providers/whatsapp/meta.js:327:15) at createWATemplate (providers/whatsapp/index.js:50:9) at queue (queue/consume.js:157:11) at Object. (e2e/template_content.test.js:2147:5) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 27 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '9306006817')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 27) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (744a5a49-696e-44a7-aadb-aed2d5cdcba3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 27 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '7056953719')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 27) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (73927f4c-a1b7-4966-aca1-565c911d4ae3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 27 AND "templates"."organisation_id" = 535)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 535 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '8802077040')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 27) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768712018 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (92ea1dcf-f8ff-439f-8205-02c141a58d18): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (644ed77e-7884-48f6-8da4-6766c7e6aa4d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."template_content_id" = 24 LIMIT 100 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (13, 14, 15) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (644ed77e-7884-48f6-8da4-6766c7e6aa4d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (13, 14, 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 4); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '36dd4e0e'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'd00acdcb'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '010aa642'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (13, 14, 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 4 AND "sms_logs"."processed_status" = 'failed'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) (node:87) NOTE: The AWS SDK for JavaScript (v2) has reached end-of-support. It will no longer receive updates or releases. Please migrate your code to use AWS SDK for JavaScript (v3). For more information, check the blog post at https://a.co/cUPnyil (Use `node --trace-warnings ...` to show where the warning was created) PASS e2e/email.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","regex","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","regex"=EXCLUDED."regex","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b7395172-32cd-46db-a753-9bef6115ecfd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b7395172-32cd-46db-a753-9bef6115ecfd): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b7395172-32cd-46db-a753-9bef6115ecfd): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b7395172-32cd-46db-a753-9bef6115ecfd): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b7395172-32cd-46db-a753-9bef6115ecfd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 30 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'singhdepak30@gmail.com')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 16); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 30) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70548c04-2594-4415-9b4b-5ea202a20cb8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 16 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 16 AND "lead_contacts"."contact" = 'singhdepak30@gmail.com')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 30 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'singhdepak30@gmail.com' ] }, messageId: '<1792768714051@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '1792768714051', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768714051'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afca30f5-6ecd-493d-aecf-57a3e833a9a2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afca30f5-6ecd-493d-aecf-57a3e833a9a2): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afca30f5-6ecd-493d-aecf-57a3e833a9a2): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afca30f5-6ecd-493d-aecf-57a3e833a9a2): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afca30f5-6ecd-493d-aecf-57a3e833a9a2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'aws') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 5 AND "channel_provider_config"."organisation_id" = 1908705377)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template delet response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 31 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'deepak.singh@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 31) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ffd102f5-e798-4b5a-a725-3541e09ced54): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 31 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 18); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 31) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3497ceae-31b5-44e8-820a-8136200b445a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 31 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'sajan.gupta@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 31) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (509de590-0313-4b5e-a852-562b40c87b64): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e732b052-9ffe-4f14-b6fa-c706b3624f81): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 5 AND "sms_logs"."template_content_id" = 28 LIMIT 50 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (17, 18, 19) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e732b052-9ffe-4f14-b6fa-c706b3624f81): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (17, 18, 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'd3877d87'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'df475a97'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '8fdbe39b'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 17 AND "lead_contacts"."contact" = 'deepak.singh@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 18 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 19 AND "lead_contacts"."contact" = 'sajan.gupta@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 31 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 31 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 31 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'sajan.gupta@galaxycard.in' ] }, messageId: '<3c39820b-a3c3-4094-b74a-c27513cc7f79@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '3c39820b-a3c3-4094-b74a-c27513cc7f79', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'deepak.singh@galaxycard.in' ] }, messageId: '', response: 'c32bc8a2-ea8d-4a86-a9d4-23263289eded', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'saurav.bansal@galaxycard.in' ] }, messageId: '<750d8c18-474a-4d4a-b297-53f935285264@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '750d8c18-474a-4d4a-b297-53f935285264', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (17, 18, 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c281c3f7-5e87-4b13-967f-3e5bc60d71bf): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c281c3f7-5e87-4b13-967f-3e5bc60d71bf): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c281c3f7-5e87-4b13-967f-3e5bc60d71bf): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c281c3f7-5e87-4b13-967f-3e5bc60d71bf): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c281c3f7-5e87-4b13-967f-3e5bc60d71bf): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 32 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 32) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (01baa5af-d5f3-4e3a-88fc-74764f76fdc5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5ac926eb-e7b7-48e5-b46d-75046209d0f6): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 5 AND "sms_logs"."template_content_id" = 29 LIMIT 50 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (20) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5ac926eb-e7b7-48e5-b46d-75046209d0f6): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'ff2927ed'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 18 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 32 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'saurav.bansal@galaxycard.in' ] }, messageId: '<1792768715403@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '1792768715403', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" IN (20) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."template_content_id" = 29 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e0017ae-558b-4955-add5-b29f24a85f21): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e0017ae-558b-4955-add5-b29f24a85f21): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e0017ae-558b-4955-add5-b29f24a85f21): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e0017ae-558b-4955-add5-b29f24a85f21): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1e0017ae-558b-4955-add5-b29f24a85f21): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 33 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'deepak.singh@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 33) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8ad4bb44-7958-4971-a6b6-16e64cb1c0d1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 33 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'sajan.gupta@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 33) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9672324c-12f5-4206-974e-d5e755b07e35): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 33 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 33) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e8a43cf-dc6d-4f21-a58b-a17ec1ae426f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70a8a097-89f1-498a-a789-e651ebb8cbd4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 5 AND "sms_logs"."template_content_id" = 30 LIMIT 50 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (21, 22, 23) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (70a8a097-89f1-498a-a789-e651ebb8cbd4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (21, 22, 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = 'e6041a4b'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '9e4437f5'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '244bd093'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 17 AND "lead_contacts"."contact" = 'deepak.singh@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 19 AND "lead_contacts"."contact" = 'sajan.gupta@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 18 AND "lead_contacts"."contact" = 'saurav.bansal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 33 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 33 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 33 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'deepak.singh@galaxycard.in' ] }, messageId: '', response: 'd249e9ef-6bbe-4587-8eae-072d1d1a3bf4', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'sajan.gupta@galaxycard.in' ] }, messageId: '', response: 'b815c5bd-8a0a-46f5-aae9-bb1efdf60566', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'saurav.bansal@galaxycard.in' ] }, messageId: '<7e919dff-0d94-4d64-aa2a-8041c66fac7a@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '7e919dff-0d94-4d64-aa2a-8041c66fac7a', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (21, 22, 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."template_content_id" = 30 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","is_attachment","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6e8ad146-9228-4a6a-972c-d37f59fa42b7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6e8ad146-9228-4a6a-972c-d37f59fa42b7): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6e8ad146-9228-4a6a-972c-d37f59fa42b7): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6e8ad146-9228-4a6a-972c-d37f59fa42b7): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6e8ad146-9228-4a6a-972c-d37f59fa42b7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 34 AND "templates"."organisation_id" = '1908705377')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1908705377' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'vansh.uppal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 34) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768713977 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (821b366b-2bd6-4d0a-ae11-cb53c2bcb393): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f3e6d8a4-12bb-45bd-ae61-4ef438d22bab): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 5 AND "sms_logs"."template_content_id" = 31 LIMIT 50 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (24) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f3e6d8a4-12bb-45bd-ae61-4ef438d22bab): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '5ea2636b'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 20 AND "lead_contacts"."contact" = 'vansh.uppal@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 34 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'vansh.uppal@galaxycard.in' ] }, messageId: '<1792768716636@zzzzzzzzzzzzzzzzzzzzzz.amazonses.com>', response: '1792768716636', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" IN (24) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."template_content_id" = 31 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/5 body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2ecdd8d-bc19-4885-aa6e-9d73e6a8e899): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2ecdd8d-bc19-4885-aa6e-9d73e6a8e899): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '5'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.debug DEBUG undefined 0 AWS callback event { eventType: 'Send', mail: { timestamp: '2016-10-14T05:02:16.645Z', source: 'sender@example.com', sourceArn: 'arn:aws:ses:us-east-1:123456789012:identity/sender@example.com', sendingAccountId: '123456789012', messageId: '1792768716636', destination: [ 'recipient@example.com' ], headersTruncated: false, headers: [ [Object], [Object], [Object], [Object], [Object], [Object] ], commonHeaders: { from: [Array], to: [Array], messageId: 'EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000', subject: 'Message sent from Amazon SES' }, tags: { 'ses:configuration-set': [Array], 'ses:source-ip': [Array], 'ses:from-domain': [Array], 'ses:caller-identity': [Array], myCustomTag1: [Array], myCustomTag2: [Array] } }, send: {} } at console. [as debug] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2ecdd8d-bc19-4885-aa6e-9d73e6a8e899): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/5 status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768716636'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '1792768716636'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '1792768716636') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","is_attachment","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ee5f2bfd-3c71-409b-800a-39429328cff2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ee5f2bfd-3c71-409b-800a-39429328cff2): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ee5f2bfd-3c71-409b-800a-39429328cff2): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ee5f2bfd-3c71-409b-800a-39429328cff2): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ee5f2bfd-3c71-409b-800a-39429328cff2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'aws') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 5 AND "channel_provider_config"."organisation_id" = 1908705377)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template delet response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/template_contents/32 body={"template_content":"{\"template_id\":35,\"lang_code\":\"eng\",\"data\":{\"subject\":\"Greetings, {{name}}!\",\"message\":\"\\n \\n \\n \\n \\n \\n \\n Hello World\\n \\n \\n \\n \\n \",\"TextPart\":\" MY {{name}},\\r\\nYour favorite animal is {{favoriteanimal}}.\"}}"} headers={"x-gct-org-id":"1908705377"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = '1908705377') WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = '32'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): UPDATE "pepper_template_contents" SET "data"=$1,"updated_at"=$2,"version"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fd653e6e-e774-4def-ab76-ca0fa4b32b0d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/template_contents/32 status=200 responseTime=26ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'aws') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = 5 AND "channel_provider_config"."organisation_id" = 1908705377)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined AWS template delet response { Template: { TemplateName: 'template-name' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/campaign.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channels" ("code","name","retry_count","regex","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","regex"=EXCLUDED."regex","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 39); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 39); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 43); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 43); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b996ff3c-474a-46f7-a798-22c50726456e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL) ORDER BY "segments"."id" DESC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/segments body={"segment":{"name":"1792768717612","groups":[{"rules":[{"filter":{"attribute_id":11,"operator_id":4,"values":100}},{"filter":{"attribute_id":8,"operator_id":6,"values":4}}]}]}} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (75026943-1e4d-489d-8acb-6c964ffd0ebb): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (75026943-1e4d-489d-8acb-6c964ffd0ebb): INSERT INTO "pepper_segments" ("id","name","organisation_id","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,NOW(),$3,$4) RETURNING "id","name","organisation_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (75026943-1e4d-489d-8acb-6c964ffd0ebb): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 1792768717619 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/segments status=200 responseTime=35ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (37de3feb-60b9-40ca-abce-5c08d085ff57): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (f10b4e95-8a46-4fdc-b28e-fa0ed7c2b27d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 23); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (11ec4318-c91c-419d-9b2a-13c05265a7e0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 24); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (de4a91fa-e068-407e-bcad-9fe34c8950c9): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 25); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 25); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 25); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (5b0226c8-b53e-4acb-9c3e-6aa0e88ad3bd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (afdb8333-9dd3-4e58-b8c5-439fd5d7b9ee): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d80cc7e8-f452-48a6-8a4e-b238f8957980): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6c84f897-779c-43cf-a253-a4200cf118ba): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6a6e71ce-7b0c-4fe1-92b2-e0b7e457f5ee): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (cad2bc05-5ada-4212-830a-3465f2aa693a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (1981e398-576b-4c08-b57b-45117db5103f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (4cfe9cfc-8da9-4456-9533-41b320e4dcc2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (18f1e723-f1a1-4b70-bc97-c86ac533b2b7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d58e01fd-25aa-44a7-a521-765466dd452e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d9c2983a-a51f-4257-96cc-ba8e867b42a3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (b2feec80-c87e-490c-869b-236dae41dfa5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ef829b2e-c718-4af9-b61b-8282d1052d07): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0720e574-2dfe-4475-9162-54529e22899d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 39); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 39); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 39); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (2c06bce3-2214-4898-9ca4-194414044a93): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 40); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 40); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 40); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (d4c60b52-9f6e-42de-92f2-32fec69a8348): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 1) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segment_leads" ("id","segment_id","lead_id","created_at","updated_at") VALUES (DEFAULT,1,21,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,23,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,25,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,27,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,29,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,31,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,33,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,35,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,37,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30'),(DEFAULT,1,39,'2026-10-23 20:48:37.989 +05:30','2026-10-23 20:48:37.989 +05:30') RETURNING "id","segment_id","lead_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segment_leads" ("id","segment_id","lead_id","created_at","updated_at") VALUES (DEFAULT,1,22,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,24,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,26,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,28,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,30,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,32,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,34,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,36,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,38,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30'),(DEFAULT,1,40,'2026-10-23 20:48:37.997 +05:30','2026-10-23 20:48:37.997 +05:30') RETURNING "id","segment_id","lead_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."channel_id" = 6 AND "templates"."priority" = 'low' AND "templates"."organisation_id" = '1082')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/campaigns body={"campaign":{"name":"first campaign","draft":false,"segment_id":1,"restart":true,"nodes":[{"data":{"channel_id":6,"channel_provider_config_id":8,"decision_type":"is_delivered","decision_value":true,"interval_mode":"absolute","interval_value":{"minute":"60","days":[1,2,4]},"parent_id":null,"template_id":37,"position":{"x":504,"y":193.38513908386227}},"children":[{"data":{"id":2,"parent_id":1,"interval_mode":"now","interval_value":null,"template_id":37,"decision_type":"is_delivered","decision_value":true,"channel_code":"sms","channel_id":6,"channel_provider_config_id":8,"position":{"x":504,"y":193.38513908386227}},"children":[{"data":{"id":3,"parent_id":2,"interval_mode":"relative","interval_value":"2 hours","template_id":37,"decision_type":"is_delivered","decision_value":true,"channel_code":"sms","channel_id":6,"channel_provider_config_id":8,"position":{"x":504,"y":193.38513908386227}},"children":[]}]}]}]}} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): INSERT INTO "pepper_campaigns" ("id","name","organisation_id","segment_id","restart","is_paused","draft","draft_data","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),$8,$9) RETURNING "id","name","organisation_id","segment_id","restart","last_processed_at","is_paused","draft","draft_data","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 37 AND "templates"."channel_provider_config_id" = 8)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): INSERT INTO "pepper_campaign_steps" ("id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12) RETURNING "id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id", "organisation_id" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 37 AND "templates"."channel_provider_config_id" = 8)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): INSERT INTO "pepper_campaign_steps" ("id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12) RETURNING "id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id", "organisation_id" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 37 AND "templates"."channel_provider_config_id" = 8)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): INSERT INTO "pepper_campaign_steps" ("id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12) RETURNING "id","campaign_id","parent_id","interval_mode","interval_value","channel_id","channel_provider_config_id","template_id","decision_type","decision_value","position","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): SELECT "id", "organisation_id" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (002825aa-ac88-4974-8f23-63115d655940): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 1792768717619 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/campaigns status=200 responseTime=54ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."name" = 'first campaign') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "campaign_id", "parent_id", "interval_mode", "interval_value", "channel_id", "channel_provider_config_id", "template_id", "decision_type", "decision_value", "position", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_campaign_steps" AS "campaign_steps" WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."campaign_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/campaigns body={} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c024dd9c-ee00-40d0-847d-629b4430c7b2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c024dd9c-ee00-40d0-847d-629b4430c7b2): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."organisation_id" = '1082') LIMIT 10 OFFSET 0; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c024dd9c-ee00-40d0-847d-629b4430c7b2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/campaigns status=200 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/campaigns/1 body={} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): SELECT "campaigns"."id", "campaigns"."name", "campaigns"."organisation_id", "campaigns"."segment_id", "campaigns"."restart", "campaigns"."last_processed_at", "campaigns"."is_paused", "campaigns"."draft", "campaigns"."draft_data", "campaigns"."created_at", "campaigns"."updated_at", "campaigns"."deleted_at", "segment"."id" AS "segment.id", "segment"."name" AS "segment.name" FROM "pepper_campaigns" AS "campaigns" LEFT OUTER JOIN "pepper_segments" AS "segment" ON "campaigns"."segment_id" = "segment"."id" AND ("segment"."deleted_at" IS NULL) WHERE ("campaigns"."deleted_at" IS NULL AND ("campaigns"."id" = '1' AND "campaigns"."organisation_id" = '1082')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): SELECT "campaign_steps"."id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "campaign_steps"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND ("campaign_steps"."campaign_id" = 1 AND "campaign_steps"."parent_id" IS NULL)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): SELECT "campaign_steps"."id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "campaign_steps"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND ("campaign_steps"."campaign_id" = 1 AND "campaign_steps"."parent_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): SELECT "campaign_steps"."id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "campaign_steps"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND ("campaign_steps"."campaign_id" = 1 AND "campaign_steps"."parent_id" = 2)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): SELECT "campaign_steps"."id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "campaign_steps"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND ("campaign_steps"."campaign_id" = 1 AND "campaign_steps"."parent_id" = 3)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (363ccc30-95b0-47e9-87fd-7833d77d2b50): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/campaigns/1 status=200 responseTime=9ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND ("campaigns"."is_paused" = false AND "campaigns"."draft" = false)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."id" = 1) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 1) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "template"."id" AS "template.id", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template->template_contents"."id" AS "template.template_contents.id", "template->template_contents"."template_id" AS "template.template_contents.template_id", "template->template_contents"."lang_code" AS "template.template_contents.lang_code", "template->template_contents"."data" AS "template.template_contents.data", "template->template_contents"."message" AS "template.template_contents.message", "template->template_contents"."attributes" AS "template.template_contents.attributes", "template->template_contents"."links" AS "template.template_contents.links", "template->template_contents"."status" AS "template.template_contents.status", "template->template_contents"."status_reason" AS "template.template_contents.status_reason", "template->template_contents"."version" AS "template.template_contents.version", "template->template_contents"."created_at" AS "template.template_contents.created_at", "template->template_contents"."updated_at" AS "template.template_contents.updated_at", "template->template_contents"."deleted_at" AS "template.template_contents.deleted_at", "template->attachments"."id" AS "template.attachments.id", "template->attachments"."template_id" AS "template.attachments.template_id", "template->attachments"."lang_code" AS "template.attachments.lang_code", "template->attachments"."name" AS "template.attachments.name", "template->attachments"."type" AS "template.attachments.type", "template->attachments"."value" AS "template.attachments.value", "template->attachments"."file_type" AS "template.attachments.file_type", "template->attachments"."created_at" AS "template.attachments.created_at", "template->attachments"."updated_at" AS "template.attachments.updated_at", "template->attachments"."deleted_at" AS "template.attachments.deleted_at", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_templates" AS "template" ON "campaign_steps"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_template_contents" AS "template->template_contents" ON "template"."id" = "template->template_contents"."template_id" AND ("template->template_contents"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_attachments" AS "template->attachments" ON "template"."id" = "template->attachments"."template_id" AND ("template->attachments"."deleted_at" IS NULL AND "template->attachments"."type" = 'template') INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "campaign_steps"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."campaign_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): SELECT "segment_leads"."id", "segment_leads"."segment_id", "segment_leads"."lead_id", "segment_leads"."created_at", "segment_leads"."updated_at", "segment_leads"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead->lead_contacts"."id" AS "lead.lead_contacts.id", "lead->lead_contacts"."contact" AS "lead.lead_contacts.contact", "lead->lead_contacts->channel"."id" AS "lead.lead_contacts.channel.id", "lead->lead_contacts->channel"."code" AS "lead.lead_contacts.channel.code", "lead->sms_logs"."id" AS "lead.sms_logs.id", "lead->sms_logs"."channel_provider_id" AS "lead.sms_logs.channel_provider_id", "lead->sms_logs"."template_content_id" AS "lead.sms_logs.template_content_id", "lead->sms_logs"."template_attributes" AS "lead.sms_logs.template_attributes", "lead->sms_logs"."valid_till" AS "lead.sms_logs.valid_till", "lead->sms_logs"."retry_count" AS "lead.sms_logs.retry_count", "lead->sms_logs"."processed_status" AS "lead.sms_logs.processed_status", "lead->sms_logs"."processed_at" AS "lead.sms_logs.processed_at", "lead->sms_logs"."attachments" AS "lead.sms_logs.attachments", "lead->sms_logs"."campaign_step_id" AS "lead.sms_logs.campaign_step_id", "lead->sms_logs"."message_id" AS "lead.sms_logs.message_id", "lead->sms_logs"."lead_id" AS "lead.sms_logs.lead_id", "lead->sms_logs"."contact" AS "lead.sms_logs.contact", "lead->sms_logs"."created_at" AS "lead.sms_logs.created_at", "lead->sms_logs"."updated_at" AS "lead.sms_logs.updated_at" FROM "pepper_segment_leads" AS "segment_leads" INNER JOIN "pepper_leads" AS "lead" ON "segment_leads"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL) INNER JOIN "pepper_lead_contacts" AS "lead->lead_contacts" ON "lead"."id" = "lead->lead_contacts"."lead_id" AND ("lead->lead_contacts"."deleted_at" IS NULL AND "lead->lead_contacts"."channel_id" = 6) LEFT OUTER JOIN "pepper_channels" AS "lead->lead_contacts->channel" ON "lead->lead_contacts"."channel_id" = "lead->lead_contacts->channel"."id" AND ("lead->lead_contacts->channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_message_logs" AS "lead->sms_logs" ON "lead"."id" = "lead->sms_logs"."lead_id" AND "lead->sms_logs"."campaign_step_id" = 1 WHERE ("segment_leads"."deleted_at" IS NULL AND ("segment_leads"."id" IN ('1', '2') AND "segment_leads"."segment_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): UPDATE "pepper_campaigns" SET "last_processed_at"=NOW(),"updated_at"=$1 WHERE "id" = $2 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (7c6bce60-bd82-4fec-9346-5a982a29fd1b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "organisation_id" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_segment_leads" AS "segment_leads" WHERE ("segment_leads"."deleted_at" IS NULL AND "segment_leads"."segment_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "campaign_id", "parent_id", "interval_mode", "interval_value", "channel_id", "channel_provider_config_id", "template_id", "decision_type", "decision_value", "position", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_campaign_steps" AS "campaign_steps" WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."campaign_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 37 AND "templates"."organisation_id" = 1082)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" LEFT OUTER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 21 AND "lead_contacts"."contact" = '9999999090' AND "lead_contacts"."channel_id" = 6)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 37) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","campaign_step_id","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768717619 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 37 AND "templates"."organisation_id" = 1082)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" LEFT OUTER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 23 AND "lead_contacts"."contact" = '9999999092' AND "lead_contacts"."channel_id" = 6)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 37) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","campaign_step_id","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768717619 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4a6c0e66-e575-4b34-8e96-264ca094e6b4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 8 AND "sms_logs"."template_content_id" = 34 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (25, 26) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4a6c0e66-e575-4b34-8e96-264ca094e6b4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (25, 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 8); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (25, 26); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" IN (25, 26) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "campaign"."id" AS "campaign.id", "campaign"."name" AS "campaign.name", "campaign"."organisation_id" AS "campaign.organisation_id", "campaign"."segment_id" AS "campaign.segment_id", "campaign"."restart" AS "campaign.restart", "campaign"."last_processed_at" AS "campaign.last_processed_at", "campaign"."is_paused" AS "campaign.is_paused", "campaign"."draft" AS "campaign.draft", "campaign"."draft_data" AS "campaign.draft_data", "campaign"."created_at" AS "campaign.created_at", "campaign"."updated_at" AS "campaign.updated_at", "campaign"."deleted_at" AS "campaign.deleted_at", "campaign->segment_lead"."id" AS "campaign.segment_lead.id", "campaign->segment_lead"."segment_id" AS "campaign.segment_lead.segment_id", "campaign->segment_lead"."lead_id" AS "campaign.segment_lead.lead_id", "campaign->segment_lead"."created_at" AS "campaign.segment_lead.created_at", "campaign->segment_lead"."updated_at" AS "campaign.segment_lead.updated_at", "campaign->segment_lead"."deleted_at" AS "campaign.segment_lead.deleted_at" FROM "pepper_campaign_steps" AS "campaign_steps" INNER JOIN "pepper_campaigns" AS "campaign" ON "campaign_steps"."campaign_id" = "campaign"."id" AND ("campaign"."deleted_at" IS NULL) INNER JOIN "pepper_segment_leads" AS "campaign->segment_lead" ON "campaign"."segment_id" = "campaign->segment_lead"."segment_id" AND ("campaign->segment_lead"."deleted_at" IS NULL AND "campaign->segment_lead"."lead_id" = 21) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "campaign"."id" AS "campaign.id", "campaign"."name" AS "campaign.name", "campaign"."organisation_id" AS "campaign.organisation_id", "campaign"."segment_id" AS "campaign.segment_id", "campaign"."restart" AS "campaign.restart", "campaign"."last_processed_at" AS "campaign.last_processed_at", "campaign"."is_paused" AS "campaign.is_paused", "campaign"."draft" AS "campaign.draft", "campaign"."draft_data" AS "campaign.draft_data", "campaign"."created_at" AS "campaign.created_at", "campaign"."updated_at" AS "campaign.updated_at", "campaign"."deleted_at" AS "campaign.deleted_at", "campaign->segment_lead"."id" AS "campaign.segment_lead.id", "campaign->segment_lead"."segment_id" AS "campaign.segment_lead.segment_id", "campaign->segment_lead"."lead_id" AS "campaign.segment_lead.lead_id", "campaign->segment_lead"."created_at" AS "campaign.segment_lead.created_at", "campaign->segment_lead"."updated_at" AS "campaign.segment_lead.updated_at", "campaign->segment_lead"."deleted_at" AS "campaign.segment_lead.deleted_at" FROM "pepper_campaign_steps" AS "campaign_steps" INNER JOIN "pepper_campaigns" AS "campaign" ON "campaign_steps"."campaign_id" = "campaign"."id" AND ("campaign"."deleted_at" IS NULL) INNER JOIN "pepper_segment_leads" AS "campaign->segment_lead" ON "campaign"."segment_id" = "campaign->segment_lead"."segment_id" AND ("campaign->segment_lead"."deleted_at" IS NULL AND "campaign->segment_lead"."lead_id" = 23) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (12a0e5a7-1a07-4ab9-81a5-3a3cf6466451): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "campaign"."id" AS "campaign.id", "campaign"."organisation_id" AS "campaign.organisation_id", "campaign"."segment_id" AS "campaign.segment_id" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_campaigns" AS "campaign" ON "campaign_steps"."campaign_id" = "campaign"."id" AND ("campaign"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."parent_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "segment_id", "lead_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segment_leads" AS "segment_leads" WHERE ("segment_leads"."deleted_at" IS NULL AND ("segment_leads"."segment_id" = 1 AND "segment_leads"."lead_id" = 21)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "campaign"."id" AS "campaign.id", "campaign"."organisation_id" AS "campaign.organisation_id", "campaign"."segment_id" AS "campaign.segment_id" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_campaigns" AS "campaign" ON "campaign_steps"."campaign_id" = "campaign"."id" AND ("campaign"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."parent_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "segment_id", "lead_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segment_leads" AS "segment_leads" WHERE ("segment_leads"."deleted_at" IS NULL AND ("segment_leads"."segment_id" = 1 AND "segment_leads"."lead_id" = 23)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND ("campaigns"."is_paused" = false AND "campaigns"."draft" = false)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."id" = 1) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 1) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): SELECT "campaign_steps"."id", "campaign_steps"."campaign_id", "campaign_steps"."parent_id", "campaign_steps"."interval_mode", "campaign_steps"."interval_value", "campaign_steps"."channel_id", "campaign_steps"."channel_provider_config_id", "campaign_steps"."template_id", "campaign_steps"."decision_type", "campaign_steps"."decision_value", "campaign_steps"."position", "campaign_steps"."created_at", "campaign_steps"."updated_at", "campaign_steps"."deleted_at", "campaign_steps"."channel_provider_config_id" AS "channelProviderConfigId", "template"."id" AS "template.id", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template->template_contents"."id" AS "template.template_contents.id", "template->template_contents"."template_id" AS "template.template_contents.template_id", "template->template_contents"."lang_code" AS "template.template_contents.lang_code", "template->template_contents"."data" AS "template.template_contents.data", "template->template_contents"."message" AS "template.template_contents.message", "template->template_contents"."attributes" AS "template.template_contents.attributes", "template->template_contents"."links" AS "template.template_contents.links", "template->template_contents"."status" AS "template.template_contents.status", "template->template_contents"."status_reason" AS "template.template_contents.status_reason", "template->template_contents"."version" AS "template.template_contents.version", "template->template_contents"."created_at" AS "template.template_contents.created_at", "template->template_contents"."updated_at" AS "template.template_contents.updated_at", "template->template_contents"."deleted_at" AS "template.template_contents.deleted_at", "template->attachments"."id" AS "template.attachments.id", "template->attachments"."template_id" AS "template.attachments.template_id", "template->attachments"."lang_code" AS "template.attachments.lang_code", "template->attachments"."name" AS "template.attachments.name", "template->attachments"."type" AS "template.attachments.type", "template->attachments"."value" AS "template.attachments.value", "template->attachments"."file_type" AS "template.attachments.file_type", "template->attachments"."created_at" AS "template.attachments.created_at", "template->attachments"."updated_at" AS "template.attachments.updated_at", "template->attachments"."deleted_at" AS "template.attachments.deleted_at", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id" FROM "pepper_campaign_steps" AS "campaign_steps" LEFT OUTER JOIN "pepper_templates" AS "template" ON "campaign_steps"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_template_contents" AS "template->template_contents" ON "template"."id" = "template->template_contents"."template_id" AND ("template->template_contents"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_attachments" AS "template->attachments" ON "template"."id" = "template->attachments"."template_id" AND ("template->attachments"."deleted_at" IS NULL AND "template->attachments"."type" = 'template') INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "campaign_steps"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) WHERE ("campaign_steps"."deleted_at" IS NULL AND "campaign_steps"."campaign_id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): SELECT "segment_leads"."id", "segment_leads"."segment_id", "segment_leads"."lead_id", "segment_leads"."created_at", "segment_leads"."updated_at", "segment_leads"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead->lead_contacts"."id" AS "lead.lead_contacts.id", "lead->lead_contacts"."contact" AS "lead.lead_contacts.contact", "lead->lead_contacts->channel"."id" AS "lead.lead_contacts.channel.id", "lead->lead_contacts->channel"."code" AS "lead.lead_contacts.channel.code", "lead->sms_logs"."id" AS "lead.sms_logs.id", "lead->sms_logs"."channel_provider_id" AS "lead.sms_logs.channel_provider_id", "lead->sms_logs"."template_content_id" AS "lead.sms_logs.template_content_id", "lead->sms_logs"."template_attributes" AS "lead.sms_logs.template_attributes", "lead->sms_logs"."valid_till" AS "lead.sms_logs.valid_till", "lead->sms_logs"."retry_count" AS "lead.sms_logs.retry_count", "lead->sms_logs"."processed_status" AS "lead.sms_logs.processed_status", "lead->sms_logs"."processed_at" AS "lead.sms_logs.processed_at", "lead->sms_logs"."attachments" AS "lead.sms_logs.attachments", "lead->sms_logs"."campaign_step_id" AS "lead.sms_logs.campaign_step_id", "lead->sms_logs"."message_id" AS "lead.sms_logs.message_id", "lead->sms_logs"."lead_id" AS "lead.sms_logs.lead_id", "lead->sms_logs"."contact" AS "lead.sms_logs.contact", "lead->sms_logs"."created_at" AS "lead.sms_logs.created_at", "lead->sms_logs"."updated_at" AS "lead.sms_logs.updated_at" FROM "pepper_segment_leads" AS "segment_leads" INNER JOIN "pepper_leads" AS "lead" ON "segment_leads"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL) INNER JOIN "pepper_lead_contacts" AS "lead->lead_contacts" ON "lead"."id" = "lead->lead_contacts"."lead_id" AND ("lead->lead_contacts"."deleted_at" IS NULL AND "lead->lead_contacts"."channel_id" = 6) LEFT OUTER JOIN "pepper_channels" AS "lead->lead_contacts->channel" ON "lead->lead_contacts"."channel_id" = "lead->lead_contacts->channel"."id" AND ("lead->lead_contacts->channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_message_logs" AS "lead->sms_logs" ON "lead"."id" = "lead->sms_logs"."lead_id" AND "lead->sms_logs"."campaign_step_id" = 1 WHERE ("segment_leads"."deleted_at" IS NULL AND ("segment_leads"."id" IN ('1', '2') AND "segment_leads"."segment_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): UPDATE "pepper_campaigns" SET "last_processed_at"=NOW(),"updated_at"=$1 WHERE "id" = $2 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29be8183-fba8-4b0b-b33e-007689fa617b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/campaigns/report/1 body={} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (34640c09-fb43-4b35-9652-8b877e80497b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (34640c09-fb43-4b35-9652-8b877e80497b): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND ("campaigns"."id" = '1' AND "campaigns"."organisation_id" = '1082')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (default): select pcs.id, pt.name "template_name", pcpc.name "channel", count(distinct pml.id) "total", count( distinct ( case when event = 'DELIVRD' then pml.id end ) ) "delivered", count( distinct ( case when event = 'OPENED' or event = 'READ' then pml.id end ) ) "opened", count( distinct ( case when (event = 'UNDELIV') then pml.id end ) ) "undelivered" from pepper_campaign_steps pcs left join pepper_message_logs pml on pml.campaign_step_id = pcs.id left join pepper_message_log_events pmle on pmle.message_id = pml.message_id join pepper_templates pt on pt.id = pcs.template_id join pepper_channel_provider_config pcpc on pcpc.id = pt.channel_provider_config_id where pcs.campaign_id = 1 group by pcs.id, pt.name, pcpc.name; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (34640c09-fb43-4b35-9652-8b877e80497b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/campaigns/report/1 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/campaigns/report/1231799729 body={} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (634d7c69-4ea3-490e-84ef-40f4527c4ddd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (634d7c69-4ea3-490e-84ef-40f4527c4ddd): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND ("campaigns"."id" = '1231799729' AND "campaigns"."organisation_id" = '1082')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (634d7c69-4ea3-490e-84ef-40f4527c4ddd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/campaigns/report/1231799729 status=404 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."channel_id" = 6 AND "templates"."channel_provider_config_id" = 8 AND "templates"."organisation_id" = '1082')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/campaigns body={"campaign":{"name":"first campaign","draft":false,"segment_id":1,"restart":true,"nodes":[{"data":{"channel_id":5,"channel_provider_config_id":6,"decision_type":null,"decision_value":null,"interval_mode":"absolute","interval_value":{"minute":"60","days":[0,1,2]},"parent_id":null,"template_id":36,"position":{"x":504,"y":193.38513908386227}},"children":[{"data":{"id":2,"parent_id":1,"interval_mode":"now","interval_value":null,"template_id":36,"decision_type":"is_delivered","decision_value":true,"channel_code":"email","channel_id":5,"channel_provider_config_id":6,"position":{"x":504,"y":193.38513908386227}},"children":[]}]}]}} headers={"x-gct-org-id":"1082"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d28b8d84-8ef0-47a0-9781-808b9c7e089a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d28b8d84-8ef0-47a0-9781-808b9c7e089a): INSERT INTO "pepper_campaigns" ("id","name","organisation_id","segment_id","restart","is_paused","draft","draft_data","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,NOW(),$8,$9) RETURNING "id","name","organisation_id","segment_id","restart","last_processed_at","is_paused","draft","draft_data","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d28b8d84-8ef0-47a0-9781-808b9c7e089a): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d28b8d84-8ef0-47a0-9781-808b9c7e089a): SELECT "id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 36 AND "templates"."channel_provider_config_id" = 6)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (d28b8d84-8ef0-47a0-9781-808b9c7e089a): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/campaigns status=422 responseTime=6ms errorResponse=invalid_campaign_step at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/sms_logs.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 45); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 45); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ae09efde-94eb-479b-880f-2f135c508f03): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 44 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 44) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (80f8ae6a-82c0-4d26-8e07-efa3e6e7c6cf): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 27 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" = $3 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/sms body={"template_id":"44"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9214f441-c780-4280-80c5-abd6791a705a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9214f441-c780-4280-80c5-abd6791a705a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/sms status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768719183' AND "leads"."organisation_id" = '1164509906')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 44 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" = '1792768719183')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484818')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768719183' AND "leads"."organisation_id" = '1164509906')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 44) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (343e5ce5-64a0-483a-a586-df21700d6ccf): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768719183' AND "leads"."organisation_id" = '1164509906')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 28 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" = $3 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."processed_status" = 'failed' LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 44 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '630518184')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 43); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 44) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 44 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" = '1792768719183')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '777728629')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768719183' AND "leads"."organisation_id" = '1164509906')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 44) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc507146-3493-4a83-8d7b-87f7037214cd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b41cef22-5117-420c-ba6a-e41cf14312b0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."template_content_id" = 41 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (29, 30) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b41cef22-5117-420c-ba6a-e41cf14312b0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (29, 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Gupshup Response For Sms 500 { response: { status: 'success' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (29, 30); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" IN (29, 30) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending' OR "sms_logs"."processed_status" = 'inflight') AND "sms_logs"."channel_provider_id" = 11; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 45 AND "templates"."organisation_id" = '1164509906')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1164509906' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 45) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719102 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e3321a2f-bf6d-48ba-b559-1d8ce45a7a63): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."template_content_id" = 42 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (31, 32, 33, 34, 35, 36, 37) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e3321a2f-bf6d-48ba-b559-1d8ce45a7a63): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (31, 32, 33, 34, 35, 36, 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 11); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 42); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (31, 32, 33, 34, 35, 36, 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" IN (31, 32, 33, 34, 35, 36, 37) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 11 AND "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 46); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 46); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 47); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 47); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe426b05-c12f-4d0e-ad3c-f3641c2ddd11): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'sms') INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'times') WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = 1) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e50f2e5e-0d9f-4d2f-bec1-a39bc692fcdc): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e50f2e5e-0d9f-4d2f-bec1-a39bc692fcdc): INSERT INTO "pepper_leads" ("id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e50f2e5e-0d9f-4d2f-bec1-a39bc692fcdc): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 46) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "message_id"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 12 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/callbacks/12?status=SUCCESS&noOfFrags=1&errCode=000&deliverydt=1645175923000&mask=10&deliverystatus=DELIVERY_SUCCESS&corelationid=38 body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46c9c7bd-5f25-413b-8c91-de7c1dee72f8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46c9c7bd-5f25-413b-8c91-de7c1dee72f8): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '12'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46c9c7bd-5f25-413b-8c91-de7c1dee72f8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/callbacks/12?status=SUCCESS&noOfFrags=1&errCode=000&deliverydt=1645175923000&mask=10&deliverystatus=DELIVERY_SUCCESS&corelationid=38 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '38') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '38'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '38'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '38') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" = 38; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'complete' AND "sms_logs"."channel_provider_id" = 12; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."contact" = '15555550123' AND "lead_contacts"."lead_id" = 44)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/callbacks/12?corelationid=38&deliverystatus=DELIVERY_FAILED&noOfFrags=1&mask=10 body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (523f943e-7bfb-4793-80c9-91e666523659): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (523f943e-7bfb-4793-80c9-91e666523659): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '12'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (523f943e-7bfb-4793-80c9-91e666523659): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/callbacks/12?corelationid=38&deliverystatus=DELIVERY_FAILED&noOfFrags=1&mask=10 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '38'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '38'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): UPDATE "pepper_lead_contacts" SET "soft_fail_delivery_count"=soft_fail_delivery_count + 1,"updated_at"=$1 WHERE "id" = $2 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" = 38; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."contact" = '15555550123' AND "lead_contacts"."lead_id" = 44)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 46 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 45); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 46) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719509 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6a9996b6-9bcf-49ae-b7e4-a811a2fdbbd4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 39 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 43); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" = $3 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" = 39; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/callbacks/12?corelationid=39&deliverystatus=DELIVERY_SUCCESS&deliverydt=1645175923000&mask=10 body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb0456da-5658-478b-8183-e33a99266791): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb0456da-5658-478b-8183-e33a99266791): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '12'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (fb0456da-5658-478b-8183-e33a99266791): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/callbacks/12?corelationid=39&deliverystatus=DELIVERY_SUCCESS&deliverydt=1645175923000&mask=10 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '39') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '39'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '39'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '39') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 47 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '346910963')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 46); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 47) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719509 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 47 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '352273974')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 47); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 47) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768719509 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (69b7dda8-df5b-4447-b7a3-3342123cc177): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (94b58f53-49ab-4497-b7c7-2fa5d819196a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 12 AND "sms_logs"."template_content_id" = 44 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (40, 41) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (94b58f53-49ab-4497-b7c7-2fa5d819196a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (40, 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 12); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 44); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" IN (NULL) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"updated_at"=$2 WHERE "id" IN (NULL, NULL) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (40, 41); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/template.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc8a905e-287e-4760-a675-814a46efc56d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc8a905e-287e-4760-a675-814a46efc56d): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'crud-fixture'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc8a905e-287e-4760-a675-814a46efc56d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720301","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a864d8a3-8682-4ebe-9ca5-c9498259813d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a864d8a3-8682-4ebe-9ca5-c9498259813d): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a864d8a3-8682-4ebe-9ca5-c9498259813d): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a864d8a3-8682-4ebe-9ca5-c9498259813d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."name" = '1792768720301' AND "templates"."default_lang_code" = 'la_1792768720254')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/templates/48 body={} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (944c1cf1-ddbf-41c5-aa66-8e38b2ef78ce): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (944c1cf1-ddbf-41c5-aa66-8e38b2ef78ce): SELECT "templates"."id", "templates"."name", "templates"."priority", "templates"."type", "templates"."min_hour", "templates"."max_hour", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "template_contents"."id" AS "template_contents.id", "template_contents->language"."code" AS "template_contents.language.code", "template_contents->language"."name" AS "template_contents.language.name", "language"."code" AS "language.code", "language"."name" AS "language.name", "attachments"."id" AS "attachments.id", "attachments"."name" AS "attachments.name", "attachments"."type" AS "attachments.type", "attachments"."value" AS "attachments.value", "attachments->language"."code" AS "attachments.language.code", "attachments->language"."name" AS "attachments.language.name" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN ( "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_languages" AS "template_contents->language" ON "template_contents"."lang_code" = "template_contents->language"."code" AND ("template_contents->language"."deleted_at" IS NULL) ) ON "templates"."id" = "template_contents"."template_id" AND ("template_contents"."deleted_at" IS NULL) INNER JOIN "pepper_languages" AS "language" ON "templates"."default_lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) LEFT OUTER JOIN ( "pepper_attachments" AS "attachments" INNER JOIN "pepper_languages" AS "attachments->language" ON "attachments"."lang_code" = "attachments->language"."code" AND ("attachments->language"."deleted_at" IS NULL) ) ON "templates"."id" = "attachments"."template_id" AND ("attachments"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = '48' AND "templates"."organisation_id" = '649')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (944c1cf1-ddbf-41c5-aa66-8e38b2ef78ce): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/templates/48 status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720342","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2144e63e-8bac-428c-920c-c86907117fca): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2144e63e-8bac-428c-920c-c86907117fca): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2144e63e-8bac-428c-920c-c86907117fca): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2144e63e-8bac-428c-920c-c86907117fca): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/templates body={} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db8d87fc-8c67-4bef-9f0a-3d739e5318ad): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (default): SELECT "templates"."id", "templates"."name", COUNT(DISTINCT(lang_code)) AS "languages", COUNT(DISTINCT(campaign_id)) AS "campaigns", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "language"."code" AS "language.code", "language"."name" AS "language.name" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_config" ON "channel_config"."id" = "templates"."channel_provider_config_id" INNER JOIN "pepper_channels" AS "channel" ON "channel_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_template_contents" AS "template_contents" ON "templates"."id" = "template_contents"."template_id" AND ("template_contents"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_campaign_steps" AS "campaign_steps" ON "templates"."id" = "campaign_steps"."template_id" AND ("campaign_steps"."deleted_at" IS NULL) INNER JOIN "pepper_languages" AS "language" ON "templates"."default_lang_code" = "language"."code" AND ("language"."deleted_at" IS NULL) WHERE ( "templates"."deleted_at" IS NULL AND "templates"."organisation_id" = '649' ) GROUP BY "templates"."id", "channel"."id", "language"."code" limit 10 offset 0 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (db8d87fc-8c67-4bef-9f0a-3d739e5318ad): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/templates status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720363","priority":"high","default_lang_code":"la_1792768720254"}} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (31624281-9888-4619-91f4-bb7c2170167d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (31624281-9888-4619-91f4-bb7c2170167d): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (31624281-9888-4619-91f4-bb7c2170167d): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=422 responseTime=3ms errorResponse=templates.organisation_id cannot be null at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT count(*) AS "count" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND "templates"."organisation_id" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720371","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8ac5b03b-62e0-4e82-963d-67d99ac831db): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8ac5b03b-62e0-4e82-963d-67d99ac831db): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8ac5b03b-62e0-4e82-963d-67d99ac831db): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8ac5b03b-62e0-4e82-963d-67d99ac831db): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720379","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e98f3544-ebd8-40d7-b023-277d5037463a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e98f3544-ebd8-40d7-b023-277d5037463a): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e98f3544-ebd8-40d7-b023-277d5037463a): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e98f3544-ebd8-40d7-b023-277d5037463a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","file_type","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates".*, "attachments"."id" AS "attachments.id", "attachments"."template_id" AS "attachments.template_id", "attachments"."lang_code" AS "attachments.lang_code", "attachments"."name" AS "attachments.name", "attachments"."type" AS "attachments.type", "attachments"."value" AS "attachments.value", "attachments"."file_type" AS "attachments.file_type", "attachments"."created_at" AS "attachments.created_at", "attachments"."updated_at" AS "attachments.updated_at", "attachments"."deleted_at" AS "attachments.deleted_at" FROM (SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND "templates"."default_lang_code" = 'la_1792768720254') AND ( SELECT "template_id" FROM "pepper_attachments" AS "attachments" WHERE (("attachments"."deleted_at" IS NULL AND "attachments"."lang_code" = 'la_1792768720254') AND "attachments"."template_id" = "templates"."id") LIMIT 1 ) IS NOT NULL LIMIT 1) AS "templates" INNER JOIN "pepper_attachments" AS "attachments" ON "templates"."id" = "attachments"."template_id" AND ("attachments"."deleted_at" IS NULL AND "attachments"."lang_code" = 'la_1792768720254'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 51 AND "attachments"."lang_code" = 'la_1792768720254')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720400","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (955d6509-b274-417f-8302-b2d256c3b40c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (955d6509-b274-417f-8302-b2d256c3b40c): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (955d6509-b274-417f-8302-b2d256c3b40c): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (955d6509-b274-417f-8302-b2d256c3b40c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","file_type","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "templates".*, "attachments"."id" AS "attachments.id", "attachments"."template_id" AS "attachments.template_id", "attachments"."lang_code" AS "attachments.lang_code", "attachments"."name" AS "attachments.name", "attachments"."type" AS "attachments.type", "attachments"."value" AS "attachments.value", "attachments"."file_type" AS "attachments.file_type", "attachments"."created_at" AS "attachments.created_at", "attachments"."updated_at" AS "attachments.updated_at", "attachments"."deleted_at" AS "attachments.deleted_at" FROM (SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND "templates"."default_lang_code" = 'la_1792768720254') AND ( SELECT "template_id" FROM "pepper_attachments" AS "attachments" WHERE (("attachments"."deleted_at" IS NULL AND "attachments"."lang_code" = 'la_1792768720254') AND "attachments"."template_id" = "templates"."id") LIMIT 1 ) IS NOT NULL LIMIT 1) AS "templates" INNER JOIN "pepper_attachments" AS "attachments" ON "templates"."id" = "attachments"."template_id" AND ("attachments"."deleted_at" IS NULL AND "attachments"."lang_code" = 'la_1792768720254'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 51 AND "attachments"."lang_code" = '1792768720420')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 51 AND "attachments"."lang_code" = 'la_1792768720254')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720423","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d1a8c9ee-d10d-43e8-8b99-87b89e146e61): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d1a8c9ee-d10d-43e8-8b99-87b89e146e61): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d1a8c9ee-d10d-43e8-8b99-87b89e146e61): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d1a8c9ee-d10d-43e8-8b99-87b89e146e61): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 53 AND "attachments"."lang_code" = 'la_1792768720254')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 83 AND "attachments"."lang_code" = '1792768720433')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720434","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a554cec8-ed41-47d2-9c56-e04dfc71eba7): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a554cec8-ed41-47d2-9c56-e04dfc71eba7): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a554cec8-ed41-47d2-9c56-e04dfc71eba7): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a554cec8-ed41-47d2-9c56-e04dfc71eba7): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = 649) WHERE ("template_contents"."deleted_at" IS NULL AND ("template_contents"."template_id" = 54 AND "template_contents"."lang_code" = 'non_existent_language_code')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 54); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = 649) WHERE ("template_contents"."deleted_at" IS NULL AND ("template_contents"."template_id" = 54 AND "template_contents"."lang_code" = 'la_1792768720254')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"1792768720448","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e59897d-3769-4818-978a-30e8d0f314e1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e59897d-3769-4818-978a-30e8d0f314e1): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e59897d-3769-4818-978a-30e8d0f314e1): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e59897d-3769-4818-978a-30e8d0f314e1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."name" = '1792768720448' AND "templates"."default_lang_code" = 'la_1792768720254')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":55,\"lang_code\":\"la_1792768720254\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 55 AND "templates"."organisation_id" = '649')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 55); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 55); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ec7d719d-21a7-4c47-ac26-544f340556dc): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=14ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL AND "template"."organisation_id" = 649) WHERE ("template_contents"."deleted_at" IS NULL AND ("template_contents"."template_id" = 55 AND "template_contents"."lang_code" = 'la_1792768720254')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/templates/channel/13 body={} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6a94e4af-afaf-462e-a5cd-b901c2a65c71): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6a94e4af-afaf-462e-a5cd-b901c2a65c71): SELECT "id", "name" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."channel_provider_config_id" = '13' AND "templates"."organisation_id" = '649')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6a94e4af-afaf-462e-a5cd-b901c2a65c71): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/templates/channel/13 status=200 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":13,"channel_id":13,"name":"109","priority":"high","default_lang_code":"la_1792768720254"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (de79b151-e646-4772-ba66-7ac517964b91): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (de79b151-e646-4772-ba66-7ac517964b91): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 13); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (de79b151-e646-4772-ba66-7ac517964b91): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (de79b151-e646-4772-ba66-7ac517964b91): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."name" = '109' AND "templates"."default_lang_code" = 'la_1792768720254')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":56,\"lang_code\":\"la_1792768720254\",\"data\":{\"message\":\"hhh\"}}"} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 56 AND "templates"."organisation_id" = '649')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 56); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 56); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (70093dcb-e133-4b9b-bb92-00f9be1f225d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=13ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=DELETE url=/v1/templates/56 body={} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232a3c4-e337-4a9d-bd54-815e13bbdb6d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232a3c4-e337-4a9d-bd54-815e13bbdb6d): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = '56'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232a3c4-e337-4a9d-bd54-815e13bbdb6d): UPDATE "pepper_template_contents" SET "deleted_at"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232a3c4-e337-4a9d-bd54-815e13bbdb6d): UPDATE "pepper_templates" SET "deleted_at"=$1 WHERE "deleted_at" IS NULL AND "id" = $2 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8232a3c4-e337-4a9d-bd54-815e13bbdb6d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=DELETE url=/v1/templates/56 status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc246472-28cf-44b7-89de-0be7073df06f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc246472-28cf-44b7-89de-0be7073df06f): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'crud-fixture'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dc246472-28cf-44b7-89de-0be7073df06f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/templates body={"template":{"channel_provider_config_id":14,"id":"1601464900","channel_id":14,"name":"GWoYhYgbzK","priority":"high","default_lang_code":"GWoYhYgbzK"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4297f6db-4911-4e7f-a40b-2a5206f00e19): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4297f6db-4911-4e7f-a40b-2a5206f00e19): SELECT "channel_id" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 14); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4297f6db-4911-4e7f-a40b-2a5206f00e19): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4297f6db-4911-4e7f-a40b-2a5206f00e19): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/templates status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/templates/57 body={"template":{"id":"1916102008"}} headers={"x-gct-org-id":"649"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2d60d789-5b1b-4a06-8467-5a557b471ce1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2d60d789-5b1b-4a06-8467-5a557b471ce1): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = '57' AND "templates"."organisation_id" = '649')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2d60d789-5b1b-4a06-8467-5a557b471ce1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/templates/57 status=200 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/lead.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","regex","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","regex"=EXCLUDED."regex","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads/file body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_leads" ("id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6c91d7a5-9aa6-4083-a2d8-efcfdbb4d69b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads/file status=200 responseTime=107ms errorResponse=invalid_attribute_value at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads/file body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4b7e8468-88f3-45b3-92e0-da5e7e713a2a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4b7e8468-88f3-45b3-92e0-da5e7e713a2a): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4b7e8468-88f3-45b3-92e0-da5e7e713a2a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads/file status=200 responseTime=7ms errorResponse=attr4_not_exists at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads/file body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9ac6c275-8d0d-460d-be35-111d74d395b8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9ac6c275-8d0d-460d-be35-111d74d395b8): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9ac6c275-8d0d-460d-be35-111d74d395b8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads/file status=200 responseTime=6ms errorResponse=invalid_attribute_value at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads/file body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (50bc7791-d92a-41df-901d-038c173f14d5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads/file status=200 responseTime=233ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a72ade51-3ca4-49af-9b4e-3852b0b4bd53): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a72ade51-3ca4-49af-9b4e-3852b0b4bd53): SELECT "leads".*, "lead_contacts"."id" AS "lead_contacts.id", "lead_contacts"."contact" AS "lead_contacts.contact", "lead_contacts->channel"."id" AS "lead_contacts.channel.id", "lead_contacts->channel"."code" AS "lead_contacts.channel.code", "lead_contacts->channel"."name" AS "lead_contacts.channel.name" FROM (SELECT "leads"."id", "leads"."external_id" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."organisation_id" = '1060391028') LIMIT 10 OFFSET 0) AS "leads" LEFT OUTER JOIN "pepper_lead_contacts" AS "lead_contacts" ON "leads"."id" = "lead_contacts"."lead_id" AND ("lead_contacts"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "lead_contacts->channel" ON "lead_contacts"."channel_id" = "lead_contacts->channel"."id" AND ("lead_contacts->channel"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a72ade51-3ca4-49af-9b4e-3852b0b4bd53): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads/contact/9306006817 body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7cd39279-cad3-4323-8dae-d8de68c7a817): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7cd39279-cad3-4323-8dae-d8de68c7a817): SELECT "leads".*, "lead_contacts"."id" AS "lead_contacts.id", "lead_contacts"."contact" AS "lead_contacts.contact", "lead_contacts->channel"."id" AS "lead_contacts.channel.id", "lead_contacts->channel"."code" AS "lead_contacts.channel.code", "lead_contacts->channel"."name" AS "lead_contacts.channel.name" FROM (SELECT "leads"."id", "leads"."external_id" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."organisation_id" = '1060391028') AND ( SELECT "lead_id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE (("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" = '9306006817') AND "lead_contacts"."lead_id" = "leads"."id") LIMIT 1 ) IS NOT NULL LIMIT 10 OFFSET 0) AS "leads" INNER JOIN "pepper_lead_contacts" AS "lead_contacts" ON "leads"."id" = "lead_contacts"."lead_id" AND ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" = '9306006817') LEFT OUTER JOIN "pepper_channels" AS "lead_contacts->channel" ON "lead_contacts"."channel_id" = "lead_contacts->channel"."id" AND ("lead_contacts->channel"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7cd39279-cad3-4323-8dae-d8de68c7a817): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads/contact/9306006817 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2f5f5245-3f4e-47de-a7fb-840eb40d9e52): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2f5f5245-3f4e-47de-a7fb-840eb40d9e52): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2f5f5245-3f4e-47de-a7fb-840eb40d9e52): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads/20/hDzAjPhApA body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (024ffe79-c3df-4063-b3cb-dbcdf6f9eb39): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (024ffe79-c3df-4063-b3cb-dbcdf6f9eb39): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = '20' AND "lead_contacts"."contact" = 'hDzAjPhApA')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (024ffe79-c3df-4063-b3cb-dbcdf6f9eb39): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_lead_contacts" AS "lead_contacts" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "lead_contacts"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."lead_id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (024ffe79-c3df-4063-b3cb-dbcdf6f9eb39): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads/20/hDzAjPhApA status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads/20/1741409478 body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (dd3a4dd5-ef65-4ffd-9a03-2020251bdf02): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (dd3a4dd5-ef65-4ffd-9a03-2020251bdf02): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = '20' AND "lead_contacts"."contact" = '1741409478')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (dd3a4dd5-ef65-4ffd-9a03-2020251bdf02): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads/20/1741409478 status=404 responseTime=3ms errorResponse=no_user_found at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3ba55be6-f626-424f-8409-bb43042c72b3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3ba55be6-f626-424f-8409-bb43042c72b3): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3ba55be6-f626-424f-8409-bb43042c72b3): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","language","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3ba55be6-f626-424f-8409-bb43042c72b3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1570968697' AND "leads"."organisation_id" = '1060391028')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3ba55be6-f626-424f-8409-bb43042c72b3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f2166f4f-6de6-49dd-a235-f3841dbbca19): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f2166f4f-6de6-49dd-a235-f3841dbbca19): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1858923126' AND "leads"."organisation_id" = '1060391028')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f2166f4f-6de6-49dd-a235-f3841dbbca19): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (f2166f4f-6de6-49dd-a235-f3841dbbca19): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads body={"id":1,"sms":"1858923126","whatsapp":"1858923126","call":"1858923126","email":"hDzAjPhApA@example.invalid","attributes":[{"name":"name","type":"text","value":"vansh"},{"name":"age","type":"number","value":28},{"name":"sex","type":"text","value":"Male"},{"lang_code":"eng","type":"text","value":"eng"}]} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."external_id" IS NULL AND "lead"."organisation_id" = '1060391028')) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('1858923126', '1858923126', '1858923126', 'hDzAjPhApA@example.invalid')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): INSERT INTO "pepper_leads" ("id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 52); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 52); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 52); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 52); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (9897cd42-adea-497c-8f82-572501331d4c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads status=200 responseTime=29ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads body={"external_id":1,"sms":"8802077040","whatsapp":"9306006817","call":"7056953719","email":"singhdepak30@gmail.com","language":"eng","attributes":[{"name":"name","type":"text","value":"vansh"},{"name":"age","type":"number","value":28},{"name":"sex","type":"text","value":"Male"}]} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."external_id" IS NULL AND "lead"."organisation_id" = '1060391028')) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('8802077040', '9306006817', '7056953719', 'singhdepak30@gmail.com')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): INSERT INTO "pepper_leads" ("external_id","organisation_id","language","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("external_id","organisation_id") DO UPDATE SET "external_id"=EXCLUDED."external_id","organisation_id"=EXCLUDED."organisation_id","language"=EXCLUDED."language","updated_at"=EXCLUDED."updated_at" RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (6ebc0fa9-6408-42c0-a423-601c86407ea5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads status=200 responseTime=21ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/leads/53 body={"sms":"1111111111","whatsapp":"9999999999","call":"5555555555","email":"test@example.com"} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "leads"."id", "leads"."external_id", "leads"."organisation_id", "leads"."language", "leads"."created_at", "leads"."updated_at", "leads"."deleted_at", "lead_contacts"."id" AS "lead_contacts.id", "lead_contacts"."contact" AS "lead_contacts.contact", "lead_contacts->channel"."id" AS "lead_contacts.channel.id", "lead_contacts->channel"."code" AS "lead_contacts.channel.code", "lead_contacts->channel"."name" AS "lead_contacts.channel.name" FROM "pepper_leads" AS "leads" LEFT OUTER JOIN "pepper_lead_contacts" AS "lead_contacts" ON "leads"."id" = "lead_contacts"."lead_id" AND ("lead_contacts"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "lead_contacts->channel" ON "lead_contacts"."channel_id" = "lead_contacts->channel"."id" AND ("lead_contacts->channel"."deleted_at" IS NULL) WHERE ("leads"."deleted_at" IS NULL AND ("leads"."id" = '53' AND "leads"."organisation_id" = '1060391028')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7e5c3460-ab15-4b68-925d-f1c4773f2061): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/leads/53 status=200 responseTime=24ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."lead_id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 2) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 3) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads body={"email":"duplicate-test@example.invalid"} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."external_id" IS NULL AND "lead"."organisation_id" = '1060391028')) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN (NULL, NULL, NULL, 'duplicate-test@example.invalid')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): INSERT INTO "pepper_leads" ("id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("lead_id","channel_id") DO UPDATE SET "contact"=EXCLUDED."contact","channel_id"=EXCLUDED."channel_id","lead_id"=EXCLUDED."lead_id","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 54); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (1299f9a0-369a-40ca-91a1-987af18cee51): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads status=200 responseTime=9ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads body={"email":"duplicate-test@example.invalid"} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e04a8687-85c8-4047-8e83-495401226cee): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e04a8687-85c8-4047-8e83-495401226cee): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."external_id" IS NULL AND "lead"."organisation_id" = '1060391028')) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN (NULL, NULL, NULL, 'duplicate-test@example.invalid')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e04a8687-85c8-4047-8e83-495401226cee): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads status=400 responseTime=3ms errorResponse=contact_already_exists at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5dadbc96-5a66-4589-93fa-88e6f9d3fc0f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5dadbc96-5a66-4589-93fa-88e6f9d3fc0f): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5dadbc96-5a66-4589-93fa-88e6f9d3fc0f): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","language","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5dadbc96-5a66-4589-93fa-88e6f9d3fc0f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads body={"external_id":"1569531281","language":"RFXsqHVSBS"} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (124ca603-c8ab-4a9e-8c0a-c351d73b846b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (124ca603-c8ab-4a9e-8c0a-c351d73b846b): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."external_id" IS NULL AND "lead"."organisation_id" = '1060391028')) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN (NULL, NULL, NULL, NULL)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (124ca603-c8ab-4a9e-8c0a-c351d73b846b): INSERT INTO "pepper_leads" ("external_id","organisation_id","language","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("external_id","organisation_id") DO UPDATE SET "external_id"=EXCLUDED."external_id","organisation_id"=EXCLUDED."organisation_id","language"=EXCLUDED."language","updated_at"=EXCLUDED."updated_at" RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (124ca603-c8ab-4a9e-8c0a-c351d73b846b): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (124ca603-c8ab-4a9e-8c0a-c351d73b846b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_leads" ("external_id","organisation_id","language","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("external_id","organisation_id") DO UPDATE SET "external_id"=EXCLUDED."external_id","organisation_id"=EXCLUDED."organisation_id","language"=EXCLUDED."language","updated_at"=EXCLUDED."updated_at" RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/leads/file body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1060391028') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."contact" IN ('9311227995', 'prateek.khandelwal@galaxycard.in', '9311227995', '9311227995', 'xxxxxxxxxxxxxxxxxxxxx')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (7ffd8883-3d8d-4f1b-93ea-f6b1ed9fa0a1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/leads/file status=200 responseTime=76ms errorResponse=invalid_attribute_value at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e0d196b-0a5f-4e67-8df6-c7f7653f7a02): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e0d196b-0a5f-4e67-8df6-c7f7653f7a02): SELECT "leads".*, "lead_contacts"."id" AS "lead_contacts.id", "lead_contacts"."contact" AS "lead_contacts.contact", "lead_contacts->channel"."id" AS "lead_contacts.channel.id", "lead_contacts->channel"."code" AS "lead_contacts.channel.code", "lead_contacts->channel"."name" AS "lead_contacts.channel.name" FROM (SELECT "leads"."id", "leads"."external_id" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."organisation_id" = '1060391028') LIMIT 10 OFFSET 0) AS "leads" LEFT OUTER JOIN "pepper_lead_contacts" AS "lead_contacts" ON "leads"."id" = "lead_contacts"."lead_id" AND ("lead_contacts"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "lead_contacts->channel" ON "lead_contacts"."channel_id" = "lead_contacts->channel"."id" AND ("lead_contacts->channel"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4e0d196b-0a5f-4e67-8df6-c7f7653f7a02): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads/49 body={} headers={"x-gct-org-id":"1060391028"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9b1a80fa-16e4-4561-9451-be753c7b1172): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9b1a80fa-16e4-4561-9451-be753c7b1172): SELECT "leads"."id", "leads"."external_id", "leads"."organisation_id", "leads"."language", "leads"."created_at", "leads"."updated_at", "leads"."deleted_at", "lead_contacts"."id" AS "lead_contacts.id", "lead_contacts"."contact" AS "lead_contacts.contact", "lead_contacts->channel"."id" AS "lead_contacts.channel.id", "lead_contacts->channel"."code" AS "lead_contacts.channel.code", "lead_contacts->channel"."name" AS "lead_contacts.channel.name", "segment_leads"."id" AS "segment_leads.id", "segment_leads"."segment_id" AS "segment_leads.segment_id", "segment_leads"."lead_id" AS "segment_leads.lead_id", "segment_leads"."created_at" AS "segment_leads.created_at", "segment_leads"."updated_at" AS "segment_leads.updated_at", "segment_leads"."deleted_at" AS "segment_leads.deleted_at", "segment_leads->segment"."id" AS "segment_leads.segment.id", "segment_leads->segment"."name" AS "segment_leads.segment.name" FROM "pepper_leads" AS "leads" LEFT OUTER JOIN "pepper_lead_contacts" AS "lead_contacts" ON "leads"."id" = "lead_contacts"."lead_id" AND ("lead_contacts"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "lead_contacts->channel" ON "lead_contacts"."channel_id" = "lead_contacts->channel"."id" AND ("lead_contacts->channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_segment_leads" AS "segment_leads" ON "leads"."id" = "segment_leads"."lead_id" AND ("segment_leads"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_segments" AS "segment_leads->segment" ON "segment_leads"."segment_id" = "segment_leads->segment"."id" AND ("segment_leads->segment"."deleted_at" IS NULL) WHERE ("leads"."deleted_at" IS NULL AND ("leads"."id" = '49' AND "leads"."organisation_id" = '1060391028')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9b1a80fa-16e4-4561-9451-be753c7b1172): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads/49 status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/provider_contracts.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channels body={"channel_id":5,"name":"Fixture email","source_email":"sender@example.invalid"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): SELECT "id", "code" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'aws'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a06a86c1-f705-4a63-8feb-6190a1ceb417): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channels status=200 responseTime=26ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 15); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channels body={"channel_id":5,"name":"Fixture email","source_email":"sender@example.invalid"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): SELECT "id", "code" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'aws'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ff3cef8d-ca45-4032-92e6-ce87063bfe49): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channels status=200 responseTime=14ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 16); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channels body={"channel_id":5,"name":"Fixture email","source_email":"sender@example.invalid"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): SELECT "id", "code" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'aws'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8c5957d3-c57d-4e79-ad81-1ce9e36741fd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channels status=200 responseTime=10ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 17); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channels body={"channel_id":5,"name":"Existing fixture email","source_email":"sender@example.invalid"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): SELECT "id", "code" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'aws'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (26f398e1-6683-4ed4-acc6-049cd34c85d6): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channels status=200 responseTime=10ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channels body={"channel_id":1,"name":"Fixture Meta","code":"local-code"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): SELECT "id", "code" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'meta'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 token debug info {"granular_scopes":[{"scope":"whatsapp_business_management","target_ids":["waba-1"]}]} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2063e44e-619b-4979-a743-bf159288e25c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channels status=200 responseTime=18ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 19); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/channels/20 body={"name":"Updated Meta","access_token":"new-token","waba":"new-waba","phone_number":"+15555550123"} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): UPDATE "pepper_channel_provider_config" SET "name"=$1,"updated_at"=$2,"iv"=$3,"configuration"=$4,"data"=$5 WHERE "id" = $6 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (73c4ffd1-e566-4153-815a-f9546c2b7695): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/channels/20 status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channels/20 body={} headers={"x-gct-org-id":"71002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (645083e4-cbaf-4296-a446-0a890e9f4e9a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (645083e4-cbaf-4296-a446-0a890e9f4e9a): SELECT "channel_provider_config"."id", "channel_provider_config"."name", "channel_provider_config"."data", "channel_provider_config"."status", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel"."code" AS "channel.code" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71002')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (645083e4-cbaf-4296-a446-0a890e9f4e9a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channels/20 status=404 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channel_provider_configs/20 body={} headers={"x-gct-org-id":"71002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4d837de5-327f-4c12-8af5-45096880ba83): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4d837de5-327f-4c12-8af5-45096880ba83): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."provider_id", "channel_provider_config"."configuration", "channel_provider_config"."version", "channel_provider_config"."iv", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71002')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (4d837de5-327f-4c12-8af5-45096880ba83): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channel_provider_configs/20 status=404 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/channels/20 body={"name":"Foreign edit","access_token":"foreign-token"} headers={"x-gct-org-id":"71002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8f57a88-ab8f-49af-b033-edb2245fa8da): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8f57a88-ab8f-49af-b033-edb2245fa8da): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71002')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f8f57a88-ab8f-49af-b033-edb2245fa8da): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/channels/20 status=404 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=DELETE url=/v1/channels/20 body={} headers={"x-gct-org-id":"71002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (907614bc-b41f-4716-9317-e3b9aa940c86): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (907614bc-b41f-4716-9317-e3b9aa940c86): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71002')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (907614bc-b41f-4716-9317-e3b9aa940c86): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=DELETE url=/v1/channels/20 status=404 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=DELETE url=/v1/channels/20 body={} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1df2f7be-41ba-4bea-990d-723975c1c899): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1df2f7be-41ba-4bea-990d-723975c1c899): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '20' AND "channel_provider_config"."organisation_id" = '71001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1df2f7be-41ba-4bea-990d-723975c1c899): UPDATE "pepper_channel_provider_config" SET "deleted_at"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (1df2f7be-41ba-4bea-990d-723975c1c899): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=DELETE url=/v1/channels/20 status=204 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 20); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27f8ac67-2207-404a-af0c-2b64d086623c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27f8ac67-2207-404a-af0c-2b64d086623c): UPDATE "pepper_channel_provider_config" SET "configuration"=$1,"iv"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27f8ac67-2207-404a-af0c-2b64d086623c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27f8ac67-2207-404a-af0c-2b64d086623c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (254c5f83-985d-4cdd-ba98-693a177e298e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (254c5f83-985d-4cdd-ba98-693a177e298e): UPDATE "pepper_channel_provider_config" SET "configuration"=$1,"iv"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (254c5f83-985d-4cdd-ba98-693a177e298e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (254c5f83-985d-4cdd-ba98-693a177e298e): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_channel_provider_config" SET "configuration"=$1,"iv"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 21); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channel_provider_configs/999999999 body={} headers={"x-gct-org-id":"71001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (048fe404-2bd6-4cb0-a4da-79a632ccc383): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (048fe404-2bd6-4cb0-a4da-79a632ccc383): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."provider_id", "channel_provider_config"."configuration", "channel_provider_config"."version", "channel_provider_config"."iv", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '999999999' AND "channel_provider_config"."organisation_id" = '71001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (048fe404-2bd6-4cb0-a4da-79a632ccc383): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channel_provider_configs/999999999 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined single waba response { data: [ { id: 'phone-1', display_phone_number: '+1 555 555 0123', account_mode: 'SANDBOX' } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined single waba response { data: [ { id: 'phone-2', display_phone_number: '+15555550124', account_mode: 'LIVE', name_status: 'REJECTED' } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined all waba response { data: [ { id: 'waba-3', name: 'Local fixture' } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/api_contracts.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dfd0ea3f-b9b2-458c-b5f5-fc8d97e2ad47): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dfd0ea3f-b9b2-458c-b5f5-fc8d97e2ad47): INSERT INTO "pepper_leads" ("id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (dfd0ea3f-b9b2-458c-b5f5-fc8d97e2ad47): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 58); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/session/onboard body={"email":"fixture@example.invalid","password":"local-test-only","org_name":"Fixture","org_code":"local-fixture"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a66b0712-9010-434f-9426-6373aec2fb9a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a66b0712-9010-434f-9426-6373aec2fb9a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/session/onboard status=201 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/session/email/verify/local-code body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a81285af-502f-4575-9912-8413eb6519e0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a81285af-502f-4575-9912-8413eb6519e0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/session/email/verify/local-code status=302 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/session/email/verify/bad-code body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (78dca95f-a38c-456f-9cf8-5ed2937b9471): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (78dca95f-a38c-456f-9cf8-5ed2937b9471): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/session/email/verify/bad-code status=400 responseTime=7ms errorResponse=expired_code at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attachments body={"template_id":58,"lang_code":"eng","name":"Fixture url","type":"url","value":"https://example.invalid/document.pdf"} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (172f5c8a-3930-4193-b5a8-457a58b32763): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (172f5c8a-3930-4193-b5a8-457a58b32763): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'email') WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 58 AND "templates"."organisation_id" = '72001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (172f5c8a-3930-4193-b5a8-457a58b32763): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (172f5c8a-3930-4193-b5a8-457a58b32763): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attachments status=200 responseTime=16ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT count(*) AS "count" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 58 AND "attachments"."type" = 'url' AND "attachments"."value" = 'https://example.invalid/document.pdf')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attachments body={"template_id":58,"lang_code":"eng","name":"Fixture template","type":"template","value":58} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (23b23c79-e946-465a-b8d0-b11e47ffe02b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (23b23c79-e946-465a-b8d0-b11e47ffe02b): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'email') WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 58 AND "templates"."organisation_id" = '72001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (23b23c79-e946-465a-b8d0-b11e47ffe02b): SELECT "id", "name", "channel_id", "channel_provider_config_id", "valid_till", "default_lang_code", "message_type", "is_attachment", "type", "priority", "min_hour", "max_hour", "extra_data", "organisation_id", "created_at", "updated_at", "deleted_at", "channel_provider_config_id" AS "channelProviderConfigId" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."organisation_id" = '72001' AND "templates"."id" = 58)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (23b23c79-e946-465a-b8d0-b11e47ffe02b): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (23b23c79-e946-465a-b8d0-b11e47ffe02b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attachments status=200 responseTime=13ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT count(*) AS "count" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 58 AND "attachments"."type" = 'template' AND "attachments"."value" = '58')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attachments body={"template_id":"58","lang_code":"eng","name":"Image attachment","type":"file"} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0c660276-d254-4b1a-ab9d-bf32e86831b9): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0c660276-d254-4b1a-ab9d-bf32e86831b9): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'email') WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = '58' AND "templates"."organisation_id" = '72001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0c660276-d254-4b1a-ab9d-bf32e86831b9): INSERT INTO "pepper_files" ("id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0c660276-d254-4b1a-ab9d-bf32e86831b9): INSERT INTO "pepper_attachments" ("id","template_id","lang_code","name","type","value","file_type","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","template_id","lang_code","name","type","value","file_type","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (0c660276-d254-4b1a-ab9d-bf32e86831b9): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attachments status=200 responseTime=18ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 58 AND "attachments"."type" = 'file')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attachments body={"template_id":58,"lang_code":"eng","name":"Foreign","type":"url","value":"https://example.invalid/private.pdf"} headers={"x-gct-org-id":"72002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9c308684-efa0-47e2-ab17-dd30be80892f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9c308684-efa0-47e2-ab17-dd30be80892f): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'email') WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 58 AND "templates"."organisation_id" = '72002')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9c308684-efa0-47e2-ab17-dd30be80892f): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attachments status=400 responseTime=4ms errorResponse=invalid_operation at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/message/template body={"template_id":58,"lead_id":58} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '72001') INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 58); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."id" = 58 AND "lead"."organisation_id" = 72001)) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."channel_id" = 5) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 58) ORDER BY case when lang_code = 'eng' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 'local-subscription' } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (55f0723b-759e-4624-8189-819632b4b358): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/message/template status=200 responseTime=27ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."template_content_id" = 47 AND "sms_logs"."lead_id" = 58 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,NOW(),$4,$5) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/message/42 body={} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9635fa8a-d857-43d6-b2ff-7440c46f3c83): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9635fa8a-d857-43d6-b2ff-7440c46f3c83): SELECT "sms_logs"."id", "sms_logs"."processed_status", "sms_log_events"."id" AS "sms_log_events.id", "sms_log_events"."event" AS "sms_log_events.event", "sms_log_events"."event_time" AS "sms_log_events.event_time", "sms_log_events"."created_at" AS "sms_log_events.created_at", "template_content"."id" AS "template_content.id", "template_content->template"."id" AS "template_content.template.id", "template_content->template"."name" AS "template_content.template.name" FROM "pepper_message_logs" AS "sms_logs" LEFT OUTER JOIN "pepper_message_log_events" AS "sms_log_events" ON "sms_logs"."message_id" = "sms_log_events"."message_id" AND ("sms_log_events"."deleted_at" IS NULL) INNER JOIN "pepper_template_contents" AS "template_content" ON "sms_logs"."template_content_id" = "template_content"."id" AND ("template_content"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template_content->template" ON "template_content"."template_id" = "template_content->template"."id" AND ("template_content->template"."deleted_at" IS NULL AND "template_content->template"."organisation_id" = '72001') WHERE "sms_logs"."id" = '42'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9635fa8a-d857-43d6-b2ff-7440c46f3c83): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/message/42 status=200 responseTime=14ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/leads/report/58 body={} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (caee96e1-14ed-4d7d-a582-26d59718cf4b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (caee96e1-14ed-4d7d-a582-26d59718cf4b): SELECT "sms_logs".*, "sms_log_events"."id" AS "sms_log_events.id", "sms_log_events"."event" AS "sms_log_events.event", "sms_log_events"."event_time" AS "sms_log_events.event_time", "sms_log_events"."created_at" AS "sms_log_events.created_at" FROM (SELECT "sms_logs"."id", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."message_id", "template_content"."id" AS "template_content.id", "template_content->template"."id" AS "template_content.template.id", "template_content->template"."name" AS "template_content.template.name" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_template_contents" AS "template_content" ON "sms_logs"."template_content_id" = "template_content"."id" AND ("template_content"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template_content->template" ON "template_content"."template_id" = "template_content->template"."id" AND ("template_content->template"."deleted_at" IS NULL AND "template_content->template"."organisation_id" = '72001') WHERE "sms_logs"."lead_id" = '58' ORDER BY "sms_logs"."processed_at" DESC LIMIT 10 OFFSET 0) AS "sms_logs" LEFT OUTER JOIN "pepper_message_log_events" AS "sms_log_events" ON "sms_logs"."message_id" = "sms_log_events"."message_id" AND ("sms_log_events"."deleted_at" IS NULL) ORDER BY "sms_logs"."processed_at" DESC; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (caee96e1-14ed-4d7d-a582-26d59718cf4b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/leads/report/58 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/message/43 body={} headers={"x-gct-org-id":"72002"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3cb82792-a2e1-45cf-8d20-0e28e9d9053c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3cb82792-a2e1-45cf-8d20-0e28e9d9053c): SELECT "sms_logs"."id", "sms_logs"."processed_status", "sms_log_events"."id" AS "sms_log_events.id", "sms_log_events"."event" AS "sms_log_events.event", "sms_log_events"."event_time" AS "sms_log_events.event_time", "sms_log_events"."created_at" AS "sms_log_events.created_at", "template_content"."id" AS "template_content.id", "template_content->template"."id" AS "template_content.template.id", "template_content->template"."name" AS "template_content.template.name" FROM "pepper_message_logs" AS "sms_logs" LEFT OUTER JOIN "pepper_message_log_events" AS "sms_log_events" ON "sms_logs"."message_id" = "sms_log_events"."message_id" AND ("sms_log_events"."deleted_at" IS NULL) INNER JOIN "pepper_template_contents" AS "template_content" ON "sms_logs"."template_content_id" = "template_content"."id" AND ("template_content"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template_content->template" ON "template_content"."template_id" = "template_content->template"."id" AND ("template_content->template"."deleted_at" IS NULL AND "template_content->template"."organisation_id" = '72002') WHERE "sms_logs"."id" = '43'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3cb82792-a2e1-45cf-8d20-0e28e9d9053c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/message/43 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/message/999999999 body={} headers={"x-gct-org-id":"72001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8b7c9baf-bf23-43dc-aaa5-42f63f5afd2c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8b7c9baf-bf23-43dc-aaa5-42f63f5afd2c): SELECT "sms_logs"."id", "sms_logs"."processed_status", "sms_log_events"."id" AS "sms_log_events.id", "sms_log_events"."event" AS "sms_log_events.event", "sms_log_events"."event_time" AS "sms_log_events.event_time", "sms_log_events"."created_at" AS "sms_log_events.created_at", "template_content"."id" AS "template_content.id", "template_content->template"."id" AS "template_content.template.id", "template_content->template"."name" AS "template_content.template.name" FROM "pepper_message_logs" AS "sms_logs" LEFT OUTER JOIN "pepper_message_log_events" AS "sms_log_events" ON "sms_logs"."message_id" = "sms_log_events"."message_id" AND ("sms_log_events"."deleted_at" IS NULL) INNER JOIN "pepper_template_contents" AS "template_content" ON "sms_logs"."template_content_id" = "template_content"."id" AND ("template_content"."deleted_at" IS NULL) INNER JOIN "pepper_templates" AS "template_content->template" ON "template_content"."template_id" = "template_content->template"."id" AND ("template_content->template"."deleted_at" IS NULL AND "template_content->template"."organisation_id" = '72001') WHERE "sms_logs"."id" = '999999999'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (8b7c9baf-bf23-43dc-aaa5-42f63f5afd2c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/message/999999999 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'gupshup') INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'wa') WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = 72001) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Gupshup OptIn Response {} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'gupshup') INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'wa') WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = 72999) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","retry_count","processed_status","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 22); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 47); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" = 44; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): DELETE FROM "pepper_message_logs" WHERE "id" = 44 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/segment.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (750fd0ab-7c26-4b63-b7dc-258e9eb13377): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (750fd0ab-7c26-4b63-b7dc-258e9eb13377): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (750fd0ab-7c26-4b63-b7dc-258e9eb13377): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 59); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (27ae67ac-dabb-427a-abcb-141c46ee8e18): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27ae67ac-dabb-427a-abcb-141c46ee8e18): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (27ae67ac-dabb-427a-abcb-141c46ee8e18): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 60); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (ab1e5cb8-2df2-4eb6-8367-7c716c07b99c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ab1e5cb8-2df2-4eb6-8367-7c716c07b99c): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ab1e5cb8-2df2-4eb6-8367-7c716c07b99c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 61); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6bf13703-9fb7-4954-88fb-6be4cf904967): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6bf13703-9fb7-4954-88fb-6be4cf904967): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6bf13703-9fb7-4954-88fb-6be4cf904967): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 62); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (236c9b5d-8438-473e-a635-74b1772a05a8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (236c9b5d-8438-473e-a635-74b1772a05a8): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (236c9b5d-8438-473e-a635-74b1772a05a8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 63); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0262163f-04c4-4370-99fa-085a8c0805de): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0262163f-04c4-4370-99fa-085a8c0805de): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0262163f-04c4-4370-99fa-085a8c0805de): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 64); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (51ed393b-2aee-459b-abff-97df3fc9a6cd): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (51ed393b-2aee-459b-abff-97df3fc9a6cd): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (51ed393b-2aee-459b-abff-97df3fc9a6cd): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 65); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (6899750b-9570-4cfb-be0a-59b6c1c3ebba): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6899750b-9570-4cfb-be0a-59b6c1c3ebba): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6899750b-9570-4cfb-be0a-59b6c1c3ebba): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 66); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (42900e1e-570a-4be5-b296-7d7ce2576a0d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (42900e1e-570a-4be5-b296-7d7ce2576a0d): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (42900e1e-570a-4be5-b296-7d7ce2576a0d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 67); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (5e05be8b-20cf-45b1-b42c-337af47e0948): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5e05be8b-20cf-45b1-b42c-337af47e0948): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (5e05be8b-20cf-45b1-b42c-337af47e0948): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 68); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (1f120240-d03b-4b6b-87d9-971a41a81bb5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1f120240-d03b-4b6b-87d9-971a41a81bb5): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1f120240-d03b-4b6b-87d9-971a41a81bb5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 69); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (a33d071e-579e-402e-bce9-32cb4a9fbb32): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a33d071e-579e-402e-bce9-32cb4a9fbb32): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a33d071e-579e-402e-bce9-32cb4a9fbb32): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 70); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (de59416d-aec5-41a8-8e8f-09e300804856): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de59416d-aec5-41a8-8e8f-09e300804856): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (de59416d-aec5-41a8-8e8f-09e300804856): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 71); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (470ade25-0cc0-47b3-983a-77b117b32184): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (470ade25-0cc0-47b3-983a-77b117b32184): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (470ade25-0cc0-47b3-983a-77b117b32184): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 72); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (29a281e2-759d-46f4-87fa-5ca4ee84aa22): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29a281e2-759d-46f4-87fa-5ca4ee84aa22): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (29a281e2-759d-46f4-87fa-5ca4ee84aa22): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 73); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (faf782ea-27bc-4e4d-9ab5-8d3d371bf3d4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (faf782ea-27bc-4e4d-9ab5-8d3d371bf3d4): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (faf782ea-27bc-4e4d-9ab5-8d3d371bf3d4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 74); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (b47c6728-d347-4039-838e-c901a0899a89): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b47c6728-d347-4039-838e-c901a0899a89): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (b47c6728-d347-4039-838e-c901a0899a89): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 75); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (0d29c1c1-706a-4990-89cc-9f877158a5d4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0d29c1c1-706a-4990-89cc-9f877158a5d4): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0d29c1c1-706a-4990-89cc-9f877158a5d4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 76); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (e314441b-b56b-4af0-88ea-16a941248042): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e314441b-b56b-4af0-88ea-16a941248042): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e314441b-b56b-4af0-88ea-16a941248042): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 77); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (209983b3-7364-4c58-ad26-ed9eea6eb31e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (209983b3-7364-4c58-ad26-ed9eea6eb31e): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (209983b3-7364-4c58-ad26-ed9eea6eb31e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 78); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (95d6e666-c5f2-463f-b4ed-dc156ade1317): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (95d6e666-c5f2-463f-b4ed-dc156ade1317): INSERT INTO "pepper_leads" ("id","created_at","updated_at") VALUES (DEFAULT,$1,$2) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (95d6e666-c5f2-463f-b4ed-dc156ade1317): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL) ORDER BY "segments"."id" DESC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/segments body={"segment":{"name":"users with due_amount>100 and due_days>=4","groups":[{"rules":[{"filter":{"attribute_id":11,"operator_id":4,"values":100}},{"filter":{"attribute_id":8,"operator_id":6,"values":4}}]}]}} headers={"x-gct-org-id":"1"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (69fe9ce9-dd31-4f57-9249-e62a182eb908): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (69fe9ce9-dd31-4f57-9249-e62a182eb908): INSERT INTO "pepper_segments" ("id","name","organisation_id","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,NOW(),$3,$4) RETURNING "id","name","organisation_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (69fe9ce9-dd31-4f57-9249-e62a182eb908): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 1792768724594 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/segments status=200 responseTime=21ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND "segments"."id" = 2) FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segment_leads" ("id","segment_id","lead_id","created_at","updated_at") VALUES (DEFAULT,2,'1','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'2','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'3','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'4','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'5','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'6','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'7','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'8','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'9','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'10','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'11','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30'),(DEFAULT,2,'12','2026-10-23 20:48:44.627 +05:30','2026-10-23 20:48:44.627 +05:30') RETURNING "id","segment_id","lead_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segment_leads" ("id","segment_id","lead_id","created_at","updated_at") VALUES (DEFAULT,2,'16','2026-10-23 20:48:44.635 +05:30','2026-10-23 20:48:44.635 +05:30') RETURNING "id","segment_id","lead_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."segment_id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "segment_id", "restart", "last_processed_at", "is_paused", "draft", "draft_data", "created_at", "updated_at", "deleted_at" FROM "pepper_campaigns" AS "campaigns" WHERE ("campaigns"."deleted_at" IS NULL AND "campaigns"."segment_id" = 2); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/segments body={} headers={"x-gct-org-id":"1"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (903e2927-0093-49d5-b966-b332952f77e2): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (default): SELECT "segments"."id", "segments"."name", COUNT(DISTINCT(segment_leads.id)) AS "count" FROM "pepper_segments" AS "segments" LEFT OUTER JOIN "pepper_segment_leads" AS "segment_leads" ON "segments"."id" = "segment_leads"."segment_id" AND ("segment_leads"."deleted_at" IS NULL) WHERE ( "segments"."deleted_at" IS NULL AND "segments"."organisation_id" = '1' ) GROUP BY "segments"."id" limit 10 offset 0 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (903e2927-0093-49d5-b966-b332952f77e2): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/segments status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL) ORDER BY "segments"."id" DESC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/segments/2 body={} headers={"x-gct-org-id":"1"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2a1c670a-b8a8-4caf-9a79-da612ae635f8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2a1c670a-b8a8-4caf-9a79-da612ae635f8): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND ("segments"."id" = '2' AND "segments"."organisation_id" = '1')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (2a1c670a-b8a8-4caf-9a79-da612ae635f8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/segments/2 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/segments/1059059155 body={} headers={"x-gct-org-id":"1"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9600c669-ed77-46a1-b3d2-12cf43a6e074): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9600c669-ed77-46a1-b3d2-12cf43a6e074): SELECT "id", "name", "organisation_id", "created_at", "updated_at", "deleted_at" FROM "pepper_segments" AS "segments" WHERE ("segments"."deleted_at" IS NULL AND ("segments"."id" = '1059059155' AND "segments"."organisation_id" = '1')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9600c669-ed77-46a1-b3d2-12cf43a6e074): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/segments/1059059155 status=404 responseTime=2ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segments" ("id","name","organisation_id","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,NOW(),$3,$4) RETURNING "id","name","organisation_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segments" ("id","name","organisation_id","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,NOW(),$3,$4) RETURNING "id","name","organisation_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_segment_leads" SET "deleted_at"=$1 WHERE "deleted_at" IS NULL AND "lead_id" = $2 AND "segment_id" NOT IN (1, 2, 3) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "segment_id" FROM "pepper_segment_leads" AS "segment_leads" WHERE ("segment_leads"."deleted_at" IS NULL AND "segment_leads"."lead_id" = '1'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_segment_leads" ("id","segment_id","lead_id","created_at","updated_at") VALUES (DEFAULT,1,'1','2026-10-23 20:48:44.664 +05:30','2026-10-23 20:48:44.664 +05:30'),(DEFAULT,3,'1','2026-10-23 20:48:44.664 +05:30','2026-10-23 20:48:44.664 +05:30') RETURNING "id","segment_id","lead_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/channel_provider_config.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("id","name","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,NOW(),$2,$3) RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d5f4ffac-37c3-4842-9329-01bff05d987f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d5f4ffac-37c3-4842-9329-01bff05d987f): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d5f4ffac-37c3-4842-9329-01bff05d987f): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d5f4ffac-37c3-4842-9329-01bff05d987f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2912d152-1048-4473-a781-1ab2b959f9ab): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2912d152-1048-4473-a781-1ab2b959f9ab): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2912d152-1048-4473-a781-1ab2b959f9ab): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2912d152-1048-4473-a781-1ab2b959f9ab): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT count(*) AS "count" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = 70003); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channel_provider_configs body={"channel_provider_config":{"name":"Test provider","channel_id":27,"provider_id":17,"priority":"1487529280","configuration":"{\"api_key\":\"1961968238\",\"api_secret\":\"EpZnEZ8TIO\"}","organisation_id":"1470522489"}} headers={"x-gct-org-id":"1470522489"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (068212ee-a227-433f-8069-3d9047610e81): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (068212ee-a227-433f-8069-3d9047610e81): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (068212ee-a227-433f-8069-3d9047610e81): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (068212ee-a227-433f-8069-3d9047610e81): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channel_provider_configs status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channel_provider_configs/27 body={} headers={"x-gct-org-id":"1470522489"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7483748c-3d1d-4c37-a90a-9a37376d44c3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7483748c-3d1d-4c37-a90a-9a37376d44c3): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."provider_id", "channel_provider_config"."configuration", "channel_provider_config"."version", "channel_provider_config"."iv", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '27' AND "channel_provider_config"."organisation_id" = '1470522489')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (7483748c-3d1d-4c37-a90a-9a37376d44c3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channel_provider_configs/27 status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channel_provider_configs body={} headers={"x-gct-org-id":"1744160789"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d9cf6aca-e17d-4550-904a-d7bc8facc39a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d9cf6aca-e17d-4550-904a-d7bc8facc39a): SELECT "channel_provider_config"."id", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '1744160789'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (d9cf6aca-e17d-4550-904a-d7bc8facc39a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channel_provider_configs status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channel_provider_configs body={"channel_provider_config":{"name":"Test provider","channel_id":27,"provider_id":17,"priority":"1487529280","configuration":"{\"api_key\":\"1961968238\",\"api_secret\":\"EpZnEZ8TIO\"}","organisation_id":"1607269245"}} headers={"x-gct-org-id":"1607269245"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ac545e67-0f2f-493d-a2b0-433df2e8d4d9): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ac545e67-0f2f-493d-a2b0-433df2e8d4d9): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ac545e67-0f2f-493d-a2b0-433df2e8d4d9): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (ac545e67-0f2f-493d-a2b0-433df2e8d4d9): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channel_provider_configs status=200 responseTime=10ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/channel_provider_configs/28 body={"channel_provider_config":{"priority":"1680756747"}} headers={"x-gct-org-id":"1607269245"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (132d0ef0-79b1-47f3-ae1e-f86aec3b1c56): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (132d0ef0-79b1-47f3-ae1e-f86aec3b1c56): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '28' AND "channel_provider_config"."organisation_id" = '1607269245')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (132d0ef0-79b1-47f3-ae1e-f86aec3b1c56): UPDATE "pepper_channel_provider_config" SET "priority"=$1,"updated_at"=$2 WHERE "id" = $3 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (132d0ef0-79b1-47f3-ae1e-f86aec3b1c56): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (132d0ef0-79b1-47f3-ae1e-f86aec3b1c56): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/channel_provider_configs/28 status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 28); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=PUT url=/v1/channel_provider_configs/1292805230 body={"channel_provider_config":{"priority":"1645933889"}} headers={"x-gct-org-id":"1292805230"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9d03ceb8-6c4f-46ce-9701-33ec9dc4e138): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9d03ceb8-6c4f-46ce-9701-33ec9dc4e138): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '1292805230' AND "channel_provider_config"."organisation_id" = '1292805230')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9d03ceb8-6c4f-46ce-9701-33ec9dc4e138): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=PUT url=/v1/channel_provider_configs/1292805230 status=404 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/channel_provider_configs body={"channel_provider_config":{"name":"Test provider","channel_id":27,"provider_id":17,"priority":"1487529280","config":{"api_key":"1961968238","api_secret":"EpZnEZ8TIO"}}} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02b16d0b-2f8e-4c97-af88-dcb90994f527): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (02b16d0b-2f8e-4c97-af88-dcb90994f527): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/channel_provider_configs status=404 responseTime=1ms errorResponse=invalid_attribute_value at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("id","name","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,NOW(),$2,$3) RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("id","name","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,NOW(),$2,$3) RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 29); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 31); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 27); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 32); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/notification.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 59); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 59); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 60); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 60); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e52c05f1-1378-4d3e-bfe4-872e02fcf406): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 59 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 10 AND "lead_contacts"."contact" = 'dvC4jrjdRyW819l2LCiQIV:APA91bERH985hXt7oG7A4R2eJKP_v59vfnuigCIo7Oz_cjRs7LTpAZ0zbB0qgt37KPVOr1mGOvIXCYV9dO2gGJAOCQZJpqR_ClIcSp3HMOWbhi6eb_1HZOqqGF_hUiLaCUz_RBkI6Sbe')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 80); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 59) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768726148 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e94f58af-b165-4fb7-a393-ef5b6afecbad): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 45 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" = $3 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'notification') INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'firebase') WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = 1) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."channel_provider_id" = 33; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 60 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 10 AND "lead_contacts"."contact" = 'fGFyl8VMOkA:APA91bElOY0-FXnW3NL0Rq_B4JIewDnGHMnOb_qoIBWlDTn2vXc1Vg3HbkLl4wXXpvc2V37Tvf0ChKjSaeJG8c2fM74t8LfKprSjM5m1ViyROZYHIgXqzz3s6L03jlyInBvsVeeYRDuG')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 10); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 81); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 60) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768726148 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (1c4ba1bc-735c-4661-a2cb-4eaf1416cbf1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 60 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 10 AND "lead_contacts"."contact" = 'fGFyl8VMOkA:APA91bElOY0-FXnW3NL0Rq_B4JIewDnGHMnOb_qoIBWlDTn2vXc1Vg3HbkLl4wXXpvc2V37Tvf0ChKjSaeJG8c2fM74t8LfKprSjM5m1ViyROZYHIgXqzz3s6L03jlyInBvsVeeYRDuG')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 60) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768726148 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d8103598-e10a-4fff-9855-a15c97d91cdf): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 60 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 10 AND "lead_contacts"."contact" = 'fGFyl8VMOkA:APA91bElOY0-FXnW3NL0Rq_B4JIewDnGHMnOb_qoIBWlDTn2vXc1Vg3HbkLl4wXXpvc2V37Tvf0ChKjSaeJG8c2fM74t8LfKprSjM5m1ViyROZYHIgXqzz3s6L03jlyInBvsVeeYRDuG')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 60) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768726148 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (955617bb-8eca-4990-abe0-e354c34271a8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e7c7923-a43e-4ba7-9b35-fe996c82067d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 33 AND "sms_logs"."template_content_id" = 49 LIMIT 100 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (46, 47, 48) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (8e7c7923-a43e-4ba7-9b35-fe996c82067d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'inflight' AND "sms_logs"."id" IN (46, 47, 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 33); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 49); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."id" IN (46, 47, 48); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"="id","updated_at"=$2 WHERE "id" IN (46, 47, 48) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) (node:87) NOTE: The AWS SDK for JavaScript (v2) has reached end-of-support. It will no longer receive updates or releases. Please migrate your code to use AWS SDK for JavaScript (v3). For more information, check the blog post at https://a.co/cUPnyil PASS e2e/link.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_channels" ("code","name","retry_count","regex","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","regex"=EXCLUDED."regex","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 61); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 61); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (34720a65-ef6b-468e-98e2-1ed646b645db): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."name" = 'email') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3b69a42c-adbb-4764-b9e5-d24f434459d4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3b69a42c-adbb-4764-b9e5-d24f434459d4): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 62); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3b69a42c-adbb-4764-b9e5-d24f434459d4): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3b69a42c-adbb-4764-b9e5-d24f434459d4): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 62); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3b69a42c-adbb-4764-b9e5-d24f434459d4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 61 AND "templates"."organisation_id" = '1675709001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1675709001' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 5 AND "lead_contacts"."contact" = 'padmesh.jakhmola@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 82); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 61) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768726883 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (36c52f1f-91c0-4e81-a6c9-fd4c931c95c0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 49 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 50); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '584eec6e'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 82 AND "lead_contacts"."contact" = 'padmesh.jakhmola@galaxycard.in')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "template_id", "lang_code", "name", "type", "value", "file_type", "created_at", "updated_at", "deleted_at" FROM "pepper_attachments" AS "attachments" WHERE ("attachments"."deleted_at" IS NULL AND ("attachments"."template_id" = 61 AND "attachments"."lang_code" = 'eng')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Response from nodemailer { envelope: { from: 'sender@example.invalid', to: [ 'padmesh.jakhmola@galaxycard.in' ] }, messageId: '<1792768726955@nZWehUaRnf.amazonses.com>', response: '1792768726955', raw: } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768726955'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."message_id" = 49) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/links/584eec6e body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38db94fd-019f-4d38-85cc-626be9207a2a): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38db94fd-019f-4d38-85cc-626be9207a2a): SELECT "links"."hash", "links"."url", "links"."message_id", "links"."created_at", "links"."updated_at", "links"."deleted_at", "sms_log"."id" AS "sms_log.id", "sms_log"."channel_provider_id" AS "sms_log.channel_provider_id", "sms_log"."template_content_id" AS "sms_log.template_content_id", "sms_log"."template_attributes" AS "sms_log.template_attributes", "sms_log"."valid_till" AS "sms_log.valid_till", "sms_log"."retry_count" AS "sms_log.retry_count", "sms_log"."processed_status" AS "sms_log.processed_status", "sms_log"."processed_at" AS "sms_log.processed_at", "sms_log"."attachments" AS "sms_log.attachments", "sms_log"."campaign_step_id" AS "sms_log.campaign_step_id", "sms_log"."message_id" AS "sms_log.message_id", "sms_log"."lead_id" AS "sms_log.lead_id", "sms_log"."contact" AS "sms_log.contact", "sms_log"."created_at" AS "sms_log.created_at", "sms_log"."updated_at" AS "sms_log.updated_at" FROM "pepper_links" AS "links" LEFT OUTER JOIN "pepper_message_logs" AS "sms_log" ON "links"."message_id" = "sms_log"."id" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '584eec6e'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (38db94fd-019f-4d38-85cc-626be9207a2a): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/links/584eec6e status=302 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768726955'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,NOW(),$4,$5) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '1792768726955'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 5); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '1792768726955') LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a84dbc0e-2f58-4af7-82cd-b7c9bb52e8bb): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a84dbc0e-2f58-4af7-82cd-b7c9bb52e8bb): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 63); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a84dbc0e-2f58-4af7-82cd-b7c9bb52e8bb): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a84dbc0e-2f58-4af7-82cd-b7c9bb52e8bb): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 63); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a84dbc0e-2f58-4af7-82cd-b7c9bb52e8bb): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/links/1542758953 body={} headers={"x-gct-org-id":"1675709001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (83b76c81-3774-42b0-8e71-91800bf60a65): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (83b76c81-3774-42b0-8e71-91800bf60a65): SELECT "links"."hash", "links"."url", "links"."message_id", "links"."created_at", "links"."updated_at", "links"."deleted_at", "sms_log"."id" AS "sms_log.id", "sms_log"."channel_provider_id" AS "sms_log.channel_provider_id", "sms_log"."template_content_id" AS "sms_log.template_content_id", "sms_log"."template_attributes" AS "sms_log.template_attributes", "sms_log"."valid_till" AS "sms_log.valid_till", "sms_log"."retry_count" AS "sms_log.retry_count", "sms_log"."processed_status" AS "sms_log.processed_status", "sms_log"."processed_at" AS "sms_log.processed_at", "sms_log"."attachments" AS "sms_log.attachments", "sms_log"."campaign_step_id" AS "sms_log.campaign_step_id", "sms_log"."message_id" AS "sms_log.message_id", "sms_log"."lead_id" AS "sms_log.lead_id", "sms_log"."contact" AS "sms_log.contact", "sms_log"."created_at" AS "sms_log.created_at", "sms_log"."updated_at" AS "sms_log.updated_at" FROM "pepper_links" AS "links" LEFT OUTER JOIN "pepper_message_logs" AS "sms_log" ON "links"."message_id" = "sms_log"."id" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '1542758953'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (83b76c81-3774-42b0-8e71-91800bf60a65): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/links/1542758953 status=404 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/whatsapp_logs.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/template_contents body={"template_content":"{\"template_id\":64,\"lang_code\":\"eng\",\"data\":{\"category\":\"Marketing\",\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"Hello,\"},{\"type\":\"BODY\",\"text\":\"Welcome to our app. Thanks for registering with us.\",\"example\":{\"body_text\":[\"vansh\"]}},{\"type\":\"FOOTER\"},{\"type\":\"BUTTONS\",\"buttons\":[{\"type\":\"URL\",\"text\":\"abcd\",\"url\":\"http://www.africau.edu\"},{\"type\":\"PHONE_NUMBER\",\"text\":\"call\",\"phone_number\":\"917303484812\"}]}]}}"} headers={"x-gct-org-id":"1504044958"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): SELECT "id", "organisation_id" FROM "pepper_templates" AS "templates" WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 64 AND "templates"."organisation_id" = '1504044958')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 64); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 64); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5fdfb6ab-cc44-407b-a165-bd08df07aff0): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/template_contents status=200 responseTime=213ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_providers"."id", "channel_providers"."name", "channel_providers"."created_at", "channel_providers"."updated_at", "channel_providers"."deleted_at", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channel_id", "channel_provider_configs"."name" AS "channel_provider_configs.name", "channel_provider_configs"."provider_id" AS "channel_provider_configs.provider_id", "channel_provider_configs"."organisation_id" AS "channel_provider_configs.organisation_id", "channel_provider_configs"."config" AS "channel_provider_configs.config", "channel_provider_configs"."configuration" AS "channel_provider_configs.configuration", "channel_provider_configs"."data" AS "channel_provider_configs.data", "channel_provider_configs"."version" AS "channel_provider_configs.version", "channel_provider_configs"."iv" AS "channel_provider_configs.iv", "channel_provider_configs"."redirect_url" AS "channel_provider_configs.redirect_url", "channel_provider_configs"."priority" AS "channel_provider_configs.priority", "channel_provider_configs"."status" AS "channel_provider_configs.status", "channel_provider_configs"."created_at" AS "channel_provider_configs.created_at", "channel_provider_configs"."updated_at" AS "channel_provider_configs.updated_at", "channel_provider_configs"."deleted_at" AS "channel_provider_configs.deleted_at", "channel_provider_configs"."channel_id" AS "channel_provider_configs.channelId", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."code" AS "channel_provider_configs.channel.code", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name", "channel_provider_configs->channel"."retry_count" AS "channel_provider_configs.channel.retry_count", "channel_provider_configs->channel"."regex" AS "channel_provider_configs.channel.regex", "channel_provider_configs->channel"."soft_delivery_failed_count" AS "channel_provider_configs.channel.soft_delivery_failed_count", "channel_provider_configs->channel"."hard_delivery_failed_count" AS "channel_provider_configs.channel.hard_delivery_failed_count", "channel_provider_configs->channel"."created_at" AS "channel_provider_configs.channel.created_at", "channel_provider_configs->channel"."updated_at" AS "channel_provider_configs.channel.updated_at", "channel_provider_configs->channel"."deleted_at" AS "channel_provider_configs.channel.deleted_at" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND ("channel_provider_configs"."id" = 36 AND "channel_provider_configs"."organisation_id" = 1504044958)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL AND "channel_provider_configs->channel"."name" = 'whatsapp') WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."name" AS "template.name", "template"."channel_id" AS "template.channel_id", "template"."channel_provider_config_id" AS "template.channel_provider_config_id", "template"."valid_till" AS "template.valid_till", "template"."default_lang_code" AS "template.default_lang_code", "template"."message_type" AS "template.message_type", "template"."is_attachment" AS "template.is_attachment", "template"."type" AS "template.type", "template"."priority" AS "template.priority", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."created_at" AS "template.created_at", "template"."updated_at" AS "template.updated_at", "template"."deleted_at" AS "template.deleted_at", "template"."channel_provider_config_id" AS "template.channelProviderConfigId", "template->channel"."id" AS "template.channel.id", "template->channel"."code" AS "template.channel.code", "template->channel"."name" AS "template.channel.name", "template->channel"."retry_count" AS "template.channel.retry_count", "template->channel"."regex" AS "template.channel.regex", "template->channel"."soft_delivery_failed_count" AS "template.channel.soft_delivery_failed_count", "template->channel"."hard_delivery_failed_count" AS "template.channel.hard_delivery_failed_count", "template->channel"."created_at" AS "template.channel.created_at", "template->channel"."updated_at" AS "template.channel.updated_at", "template->channel"."deleted_at" AS "template.channel.deleted_at" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channels" AS "template->channel" ON "template"."channel_id" = "template->channel"."id" AND ("template->channel"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'gupshup') WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."channel_id" = 1 AND "channel_provider_config"."organisation_id" = 1504044958)) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Result from gupshup template API 200 { success: true } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_channel_provider_config" SET "priority"=$1,"updated_at"=$2 WHERE ("deleted_at" IS NULL AND ("channel_id" = $3 AND "provider_id" = $4)) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 64 AND "templates"."organisation_id" = '1504044958')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1504044958' AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 1 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 1); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 83); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 64) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768727535 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2205377f-0c70-441e-a1d3-a1f3dc6b1109): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 50 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 53); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "hash", "url", "message_id", "created_at", "updated_at", "deleted_at" FROM "pepper_links" AS "links" WHERE ("links"."deleted_at" IS NULL AND "links"."hash" = '56c3b4b1'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): INSERT INTO "pepper_links" ("hash","url","message_id","created_at","updated_at","deleted_at") VALUES ($1,$2,$3,NOW(),NOW(),$4) RETURNING "hash","url","message_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Result from Gupshup 200 { response: { status: 'success' } } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"processed_at"=NOW(),"message_id"=$2,"updated_at"=$3 WHERE "id" = $4 RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at" at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/call.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "code"=EXCLUDED."code","name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 65); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 65); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 66); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","message","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 66); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (93bff414-90bc-46f3-ab12-19e78bb7860c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 65 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 84); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 65) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (47d2c6ba-b7f3-42f6-b3e9-ef567cd08c70): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending' AND "sms_logs"."id" = 51 FOR UPDATE; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."default_lang_code" AS "template.default_lang_code", "template"."extra_data" AS "template.extra_data", "template"."organisation_id" AS "template.organisation_id", "template"."message_type" AS "template.message_type" FROM "pepper_template_contents" AS "template_contents" INNER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 54); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_id", "name", "provider_id", "organisation_id", "config", "configuration", "data", "version", "iv", "redirect_url", "priority", "status", "created_at", "updated_at", "deleted_at", "channel_id" AS "channelId" FROM "pepper_channel_provider_config" AS "channel_provider_config" WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Call response 200 queued1792768728585 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "message_id"=$1,"processed_status"=$2,"processed_at"=NOW(),"updated_at"=$3 WHERE "id" = $4 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."retry_count" AS "channel.retry_count", "channel"."regex" AS "channel.regex", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count", "channel"."created_at" AS "channel.created_at", "channel"."updated_at" AS "channel.updated_at", "channel"."deleted_at" AS "channel.deleted_at", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name", "channel_provider"."created_at" AS "channel_provider.created_at", "channel_provider"."updated_at" AS "channel_provider.updated_at", "channel_provider"."deleted_at" AS "channel_provider.deleted_at" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL AND "channel"."code" = 'call') INNER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL AND "channel_provider"."name" = 'kookoo') WHERE ("channel_provider_config"."deleted_at" IS NULL) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/9 body={"sid":"1792768728585","caller_id":"911166764129","phone_no":"7303484812","duration":"6","start_time":"2022-07-29 16:36:59","status":"answered","status_details":"NormalCallClearing","ringing_time":"7","telco_code":"16","dial_time":"2022-07-29 16:36:59","pick_time":"2022-07-29 16:37:06","end_time":"2022-07-29 16:37:12"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cb8c3988-580c-41e5-a82a-78148d8d69ae): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cb8c3988-580c-41e5-a82a-78148d8d69ae): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '9'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cb8c3988-580c-41e5-a82a-78148d8d69ae): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/9 status=200 responseTime=4ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."message_id" = '1792768728585'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_message_log_events" ("id","message_id","event","extra_data","event_time","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,NOW(),$5,$6) RETURNING "id","message_id","event","extra_data","event_time","link_id","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "sms_logs"."id", "sms_logs"."channel_provider_id", "sms_logs"."template_content_id", "sms_logs"."template_attributes", "sms_logs"."valid_till", "sms_logs"."retry_count", "sms_logs"."processed_status", "sms_logs"."processed_at", "sms_logs"."attachments", "sms_logs"."campaign_step_id", "sms_logs"."message_id", "sms_logs"."lead_id", "sms_logs"."contact", "sms_logs"."created_at", "sms_logs"."updated_at", "lead_contact"."id" AS "lead_contact.id", "lead_contact"."lead_id" AS "lead_contact.lead_id", "lead_contact"."channel_id" AS "lead_contact.channel_id", "lead_contact"."contact" AS "lead_contact.contact", "lead_contact"."is_unsubscribed" AS "lead_contact.is_unsubscribed", "lead_contact"."soft_fail_delivery_count" AS "lead_contact.soft_fail_delivery_count", "lead_contact"."hard_fail_delivery_count" AS "lead_contact.hard_fail_delivery_count", "lead_contact"."created_at" AS "lead_contact.created_at", "lead_contact"."updated_at" AS "lead_contact.updated_at", "lead_contact"."deleted_at" AS "lead_contact.deleted_at" FROM "pepper_message_logs" AS "sms_logs" INNER JOIN "pepper_lead_contacts" AS "lead_contact" ON "sms_logs"."lead_id" = "lead_contact"."lead_id" AND ("lead_contact"."deleted_at" IS NULL AND "lead_contact"."contact" = "sms_logs"."contact") WHERE "sms_logs"."message_id" = '1792768728585'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 9); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (default): SELECT "id", "message_id", "event", "extra_data", "event_time", "link_id", "created_at", "updated_at", "deleted_at" FROM "pepper_message_log_events" AS "sms_log_events" WHERE ("sms_log_events"."deleted_at" IS NULL AND "sms_log_events"."message_id" = '1792768728585'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (bc71c827-364c-403c-8c2f-59612d122cb5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6b7d0058-cb69-455a-8fdc-d51ff7e03ace): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (3bf9c361-7730-4a8e-ac46-2e9cef3501bb): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (6f345cc3-a7f6-4bba-89bc-ecfa8ad30846): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (2c62e0fc-c199-4df7-85df-687032bc63f8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (709903db-6f1d-4212-a079-efd15f8ce11f): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (ec603dfb-597a-4985-af8e-37021b94dccc): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d91f58a4-4e1d-48c4-9e15-e354a22f8004): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (e87f919f-af8e-4be4-95df-8a842a2ad409): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (97ba868e-76bb-4b3e-a0c4-c9fb277b7645): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (857ebf80-2748-43a0-9f08-331217107e46): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 66 AND "templates"."organisation_id" = 1)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 1 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 9 AND "lead_contacts"."contact" = '7303484812')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 66) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'eng' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Lago subsciption response 200 { subscriptions: [ { external_id: 1792768728550 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (4f2101a3-01d7-40df-9717-bcd125e1fcf5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 55); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c4db6b6d-58e7-4007-bf3a-7b06b32923ec): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 37 AND "sms_logs"."template_content_id" = 55 LIMIT 100 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (c4db6b6d-58e7-4007-bf3a-7b06b32923ec): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/message.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("code","name","retry_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("name","created_at","deleted_at","updated_at") VALUES ($1,NOW(),$2,$3) ON CONFLICT ("name") DO UPDATE SET "name"=EXCLUDED."name","updated_at"=EXCLUDED."updated_at" RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): INSERT INTO "pepper_lead_contacts" ("id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8) RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 85); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): SELECT "templates"."id", "templates"."organisation_id", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 67); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): INSERT INTO "pepper_template_contents" ("id","template_id","lang_code","data","attributes","links","status","version","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9) RETURNING "id","template_id","lang_code","data","message","attributes","links","status","status_reason","version","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): SELECT "templates"."id", "templates"."priority", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_templates" AS "templates" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "templates"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 67); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (89f5cb90-1a73-419e-ae53-56e5b3a4bc50): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/message body={"channel_id":6,"template_id":67,"contact":"9999999999","attributes":[{"id":"1195246944","name":"due_amount","type":"number"},{"id":"1195246944","name":"due_days","type":"number"},{"id":"1195246944","name":"name","type":"text"}]} headers={"x-gct-org-id":"962"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '962') INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 67 AND "templates"."organisation_id" = '962')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code", "channel_provider_config->channel"."name" AS "channel_provider_config.channel.name", "channel_provider_config->channel"."retry_count" AS "channel_provider_config.channel.retry_count", "channel_provider_config->channel"."regex" AS "channel_provider_config.channel.regex", "channel_provider_config->channel"."soft_delivery_failed_count" AS "channel_provider_config.channel.soft_delivery_failed_count", "channel_provider_config->channel"."hard_delivery_failed_count" AS "channel_provider_config.channel.hard_delivery_failed_count", "channel_provider_config->channel"."created_at" AS "channel_provider_config.channel.created_at", "channel_provider_config->channel"."updated_at" AS "channel_provider_config.channel.updated_at", "channel_provider_config->channel"."deleted_at" AS "channel_provider_config.channel.deleted_at" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL) INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 67 AND "templates"."organisation_id" = 962)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = 962 AND "lead"."external_id" IS NULL)) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 6 AND "lead_contacts"."contact" = '9999999999')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 6); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 86); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 67) ORDER BY case when lang_code = 'null' then 0 when lang_code = 'YMtrVveyOC' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,NOW(),$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 962 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e407c734-8751-4b6c-b427-de878952a59d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/message status=200 responseTime=34ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 56); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d10bcf79-f3d3-4ce6-bb90-140d159dee6e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 38 AND "sms_logs"."template_content_id" = 56 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (64) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (d10bcf79-f3d3-4ce6-bb90-140d159dee6e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/message/template body={"template_id":67,"lead_id":85} headers={"x-gct-org-id":"962"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '962') INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 67); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."id" = 85 AND "lead"."organisation_id" = 962)) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."channel_id" = 6) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): SELECT "id", "template_id", "lang_code", "data", "message", "attributes", "links", "status", "status_reason", "version", "created_at", "updated_at", "deleted_at" FROM "pepper_template_contents" AS "template_contents" WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."template_id" = 67) ORDER BY case when lang_code = 'YMtrVveyOC' then 0 when lang_code = 'YMtrVveyOC' then 1 else 2 end ASC LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): INSERT INTO "pepper_message_logs" ("id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","message_id","lead_id","contact","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,NOW() + interval '5 minute',$4,$5,$6,$7,$8,$9,$10) RETURNING "id","channel_provider_id","template_content_id","template_attributes","valid_till","retry_count","processed_status","processed_at","attachments","campaign_step_id","message_id","lead_id","contact","created_at","updated_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Lago subsciption response 200 { subscriptions: [ { external_id: 962 } ] } at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (045fb216-2238-46c5-9036-c23fea2b4619): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/message/template status=200 responseTime=18ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "channel_provider_id", "template_content_id", "template_attributes", "valid_till", "retry_count", "processed_status", "processed_at", "attachments", "campaign_step_id", "message_id", "lead_id", "contact", "created_at", "updated_at" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."lead_id" = 85 LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT DISTINCT("template_content_id") AS "template_content_id", "channel_provider_id" FROM "pepper_message_logs" AS "sms_logs" WHERE "sms_logs"."processed_status" = 'pending'; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."code" AS "channel.code", "channel"."name" AS "channel.name", "channel"."soft_delivery_failed_count" AS "channel.soft_delivery_failed_count", "channel"."hard_delivery_failed_count" AS "channel.hard_delivery_failed_count" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "template_contents"."id", "template_contents"."template_id", "template_contents"."lang_code", "template_contents"."data", "template_contents"."message", "template_contents"."attributes", "template_contents"."links", "template_contents"."status", "template_contents"."status_reason", "template_contents"."version", "template_contents"."created_at", "template_contents"."updated_at", "template_contents"."deleted_at", "template"."id" AS "template.id", "template"."organisation_id" AS "template.organisation_id", "template"."extra_data" AS "template.extra_data", "template"."min_hour" AS "template.min_hour", "template"."max_hour" AS "template.max_hour", "template"."priority" AS "template.priority" FROM "pepper_template_contents" AS "template_contents" LEFT OUTER JOIN "pepper_templates" AS "template" ON "template_contents"."template_id" = "template"."id" AND ("template"."deleted_at" IS NULL) WHERE ("template_contents"."deleted_at" IS NULL AND "template_contents"."id" = 56); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9962d72b-9f1e-468c-b557-794b282cb540): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id" FROM "pepper_message_logs" AS "sms_logs" WHERE ("sms_logs"."processed_status" = 'pending') AND "sms_logs"."channel_provider_id" = 38 AND "sms_logs"."template_content_id" = 56 LIMIT 1000 FOR UPDATE SKIP LOCKED; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): UPDATE "pepper_message_logs" SET "processed_status"=$1,"updated_at"=$2 WHERE "id" IN (65) at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (9962d72b-9f1e-468c-b557-794b282cb540): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fb7bd680-af60-4f1c-ae1a-81b03ba21e71): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fb7bd680-af60-4f1c-ae1a-81b03ba21e71): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'crud-fixture'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fb7bd680-af60-4f1c-ae1a-81b03ba21e71): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 34); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_templates" ("id","name","channel_id","channel_provider_config_id","default_lang_code","message_type","type","priority","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10) RETURNING "id","name","channel_id","channel_provider_config_id","valid_till","default_lang_code","message_type","is_attachment","type","priority","min_hour","max_hour","extra_data","organisation_id","created_at","updated_at","deleted_at","channel_provider_config_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/message body={"channel_id":34,"template_id":68} headers={"x-gct-org-id":"962"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (85cc31ef-a7af-43d5-8cf8-2ee106ddc330): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (85cc31ef-a7af-43d5-8cf8-2ee106ddc330): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '962') INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND ("templates"."id" = 68 AND "templates"."organisation_id" = '962')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (85cc31ef-a7af-43d5-8cf8-2ee106ddc330): ROLLBACK; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/message status=400 responseTime=3ms errorResponse=params_missing at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a95de1ba-4083-4b47-af6d-3949cdcd9fb8): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a95de1ba-4083-4b47-af6d-3949cdcd9fb8): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (a95de1ba-4083-4b47-af6d-3949cdcd9fb8): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/message/template body={"template_id":68,"lead_id":87} headers={"x-gct-org-id":"962"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3ecf06b6-959a-4f6e-b77a-6ce05ad52ed1): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3ecf06b6-959a-4f6e-b77a-6ce05ad52ed1): SELECT "templates"."id", "templates"."name", "templates"."channel_id", "templates"."channel_provider_config_id", "templates"."valid_till", "templates"."default_lang_code", "templates"."message_type", "templates"."is_attachment", "templates"."type", "templates"."priority", "templates"."min_hour", "templates"."max_hour", "templates"."extra_data", "templates"."organisation_id", "templates"."created_at", "templates"."updated_at", "templates"."deleted_at", "templates"."channel_provider_config_id" AS "channelProviderConfigId", "channel_provider_config"."id" AS "channel_provider_config.id", "channel_provider_config"."channel_id" AS "channel_provider_config.channel_id", "channel_provider_config"."name" AS "channel_provider_config.name", "channel_provider_config"."provider_id" AS "channel_provider_config.provider_id", "channel_provider_config"."organisation_id" AS "channel_provider_config.organisation_id", "channel_provider_config"."config" AS "channel_provider_config.config", "channel_provider_config"."configuration" AS "channel_provider_config.configuration", "channel_provider_config"."data" AS "channel_provider_config.data", "channel_provider_config"."version" AS "channel_provider_config.version", "channel_provider_config"."iv" AS "channel_provider_config.iv", "channel_provider_config"."redirect_url" AS "channel_provider_config.redirect_url", "channel_provider_config"."priority" AS "channel_provider_config.priority", "channel_provider_config"."status" AS "channel_provider_config.status", "channel_provider_config"."created_at" AS "channel_provider_config.created_at", "channel_provider_config"."updated_at" AS "channel_provider_config.updated_at", "channel_provider_config"."deleted_at" AS "channel_provider_config.deleted_at", "channel_provider_config"."channel_id" AS "channel_provider_config.channelId", "channel_provider_config->channel"."id" AS "channel_provider_config.channel.id", "channel_provider_config->channel"."code" AS "channel_provider_config.channel.code" FROM "pepper_templates" AS "templates" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_config" ON "templates"."channel_provider_config_id" = "channel_provider_config"."id" AND ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '962') INNER JOIN "pepper_channels" AS "channel_provider_config->channel" ON "channel_provider_config"."channel_id" = "channel_provider_config->channel"."id" AND ("channel_provider_config->channel"."deleted_at" IS NULL) WHERE ("templates"."deleted_at" IS NULL AND "templates"."id" = 68); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3ecf06b6-959a-4f6e-b77a-6ce05ad52ed1): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."id" = 87 AND "lead"."organisation_id" = 962)) WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."channel_id" = 34) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3ecf06b6-959a-4f6e-b77a-6ce05ad52ed1): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/message/template status=404 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/lead_contact.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"external_id":"1792768730193","contact":"9999999990"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e21c2062-2fc0-485f-bc74-600e7e04b486): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (e21c2062-2fc0-485f-bc74-600e7e04b486): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=400 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"channel_id":35,"contact":"9999999990"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (40518b3a-5006-400c-b77c-1817360b7720): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (40518b3a-5006-400c-b77c-1817360b7720): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=400 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"channel_id":35,"external_id":"1792768730253"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5d90ee91-da21-4157-b0b5-691c84829a76): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (5d90ee91-da21-4157-b0b5-691c84829a76): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=400 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"external_id":"1792768730262","channel_id":35,"contact":"9999999990"} headers={"x-gct-org-id":"1773"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1773' AND "lead"."external_id" = '1792768730262')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 35 AND "lead_contacts"."contact" = '9999999990')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768730262' AND "leads"."organisation_id" = '1773')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 88); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (c85c2809-ff68-4ec1-aece-6e4527137c69): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=200 responseTime=173ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/lead_contacts/221 body={} headers={"x-gct-org-id":"1773"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (88fe2c49-2e70-41e6-bed8-beea4bf53b9b): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (88fe2c49-2e70-41e6-bed8-beea4bf53b9b): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND "lead"."organisation_id" = '1773') WHERE ("lead_contacts"."deleted_at" IS NULL AND "lead_contacts"."id" = '221'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (88fe2c49-2e70-41e6-bed8-beea4bf53b9b): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/lead_contacts/221 status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/lead_contacts body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4bf636-08a8-44e1-b5bc-d51afc515135): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4bf636-08a8-44e1-b5bc-d51afc515135): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9f4bf636-08a8-44e1-b5bc-d51afc515135): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/lead_contacts status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0c6ed384-5f74-4c7a-b9f5-9bc95e4c99f4): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0c6ed384-5f74-4c7a-b9f5-9bc95e4c99f4): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (0c6ed384-5f74-4c7a-b9f5-9bc95e4c99f4): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"external_id":"1792768730463","channel_id":35,"contact":"9999999992"} headers={"x-gct-org-id":"1773"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1773' AND "lead"."external_id" = '1792768730463')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 35 AND "lead_contacts"."contact" = '9999999992')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768730463' AND "leads"."organisation_id" = '1773')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 35); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 89); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (f23c729b-f120-46fb-803c-2e78c625d658): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=200 responseTime=11ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "lead_id", "channel_id", "contact", "is_unsubscribed", "soft_fail_delivery_count", "hard_fail_delivery_count", "created_at", "updated_at", "deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."lead_id" = 89 AND "lead_contacts"."channel_id" = 35)); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","regex","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"external_id":"1792768730493","channel_id":36,"contact":"99999"} headers={"x-gct-org-id":"1773"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1773' AND "lead"."external_id" = '1792768730493')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 36 AND "lead_contacts"."contact" = '99999')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768730493' AND "leads"."organisation_id" = '1773')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (f6c8f610-fe0f-4a74-a288-dd567010cbe3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=400 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/lead_contacts body={"external_id":"1792768730502","channel_id":36,"contact":"9999999992"} headers={"x-gct-org-id":"1773"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): SELECT "lead_contacts"."id", "lead_contacts"."lead_id", "lead_contacts"."channel_id", "lead_contacts"."contact", "lead_contacts"."is_unsubscribed", "lead_contacts"."soft_fail_delivery_count", "lead_contacts"."hard_fail_delivery_count", "lead_contacts"."created_at", "lead_contacts"."updated_at", "lead_contacts"."deleted_at", "lead"."id" AS "lead.id", "lead"."external_id" AS "lead.external_id", "lead"."organisation_id" AS "lead.organisation_id", "lead"."language" AS "lead.language", "lead"."created_at" AS "lead.created_at", "lead"."updated_at" AS "lead.updated_at", "lead"."deleted_at" AS "lead.deleted_at" FROM "pepper_lead_contacts" AS "lead_contacts" INNER JOIN "pepper_leads" AS "lead" ON "lead_contacts"."lead_id" = "lead"."id" AND ("lead"."deleted_at" IS NULL AND ("lead"."organisation_id" = '1773' AND "lead"."external_id" = '1792768730502')) WHERE ("lead_contacts"."deleted_at" IS NULL AND ("lead_contacts"."channel_id" = 36 AND "lead_contacts"."contact" = '9999999992')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND ("leads"."external_id" = '1792768730502' AND "leads"."organisation_id" = '1773')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): INSERT INTO "pepper_leads" ("id","external_id","organisation_id","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4) RETURNING "id","external_id","organisation_id","language","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) at async Promise.all (index 1) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): INSERT INTO "pepper_lead_contacts" ("lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7,$8) ON CONFLICT ("channel_id","lead_id") DO UPDATE SET "lead_id"=EXCLUDED."lead_id","channel_id"=EXCLUDED."channel_id","contact"=EXCLUDED."contact","updated_at"=EXCLUDED."updated_at" RETURNING "id","lead_id","channel_id","contact","is_unsubscribed","soft_fail_delivery_count","hard_fail_delivery_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 36); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): SELECT "id", "external_id", "organisation_id", "language", "created_at", "updated_at", "deleted_at" FROM "pepper_leads" AS "leads" WHERE ("leads"."deleted_at" IS NULL AND "leads"."id" = 91); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 1) console.info INFO undefined 0 Executing (f262def4-31b5-4c98-8727-c7fbca28271e): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/lead_contacts status=200 responseTime=13ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/http.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) PASS routes/message.test.js PASS e2e/attribute.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/attributes body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cb6c4896-77de-43d8-bb55-6b7e85162119): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (cb6c4896-77de-43d8-bb55-6b7e85162119): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/attributes status=200 responseTime=26ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attributes body={"0":{"id":"1078169863","name":"due_amount","type":"number"},"1":{"id":"1078169863","name":"due_days","type":"number"},"2":{"id":"1078169863","name":"name","type":"text"}} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (71d4e085-6704-42d6-8009-d60ed305a79c): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (71d4e085-6704-42d6-8009-d60ed305a79c): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attributes status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attributes/file body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9b7c105b-1cca-483b-acd9-bad81afa8a89): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (9b7c105b-1cca-483b-acd9-bad81afa8a89): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attributes/file status=200 responseTime=7ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/attributes/file body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (444d71db-e0e5-49a5-b22a-c968d4dc75b5): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (444d71db-e0e5-49a5-b22a-c968d4dc75b5): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/attributes/file status=422 responseTime=1ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/callback.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_providers" ("id","name","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,NOW(),$2,$3) RETURNING "id","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,NOW(),$12,$13) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 37); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/callbacks/40 body={} headers={"x-gct-org-id":"1788061212"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (455eaf07-5c20-4d08-a775-86b41c31c135): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (455eaf07-5c20-4d08-a775-86b41c31c135): SELECT "channel_provider_config"."id", "channel_provider_config"."channel_id", "channel_provider_config"."name", "channel_provider_config"."provider_id", "channel_provider_config"."organisation_id", "channel_provider_config"."config", "channel_provider_config"."configuration", "channel_provider_config"."data", "channel_provider_config"."version", "channel_provider_config"."iv", "channel_provider_config"."redirect_url", "channel_provider_config"."priority", "channel_provider_config"."status", "channel_provider_config"."created_at", "channel_provider_config"."updated_at", "channel_provider_config"."deleted_at", "channel_provider_config"."channel_id" AS "channelId", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel_provider"."id" AS "channel_provider.id", "channel_provider"."name" AS "channel_provider.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" LEFT OUTER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) LEFT OUTER JOIN "pepper_channel_providers" AS "channel_provider" ON "channel_provider_config"."provider_id" = "channel_provider"."id" AND ("channel_provider"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."id" = '40'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Response from redirect url https://example.com/redirect is 200 at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (455eaf07-5c20-4d08-a775-86b41c31c135): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/callbacks/40 status=200 responseTime=12ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/session.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/session body={"email":"1792768732556@gmail.com","password":"1792768732556","organization_code":"1792768732556"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (79d069b8-1be6-4fa7-a845-3b434122c5ea): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (79d069b8-1be6-4fa7-a845-3b434122c5ea): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/session status=200 responseTime=25ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=POST url=/v1/session body={"email":"1792768732594@gmail.com","password":"1792768732594","organization_code":"1792768732594"} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (57bbf8d3-ee09-4d3d-822a-438539362199): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (57bbf8d3-ee09-4d3d-822a-438539362199): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=POST url=/v1/session status=200 responseTime=6ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 5 Starting traceID=undefined method=DELETE url=/v1/session/ body={} headers={"x-gct-user-id":"5"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 5 Executing (0853b3be-58c3-485f-bb83-01967893a587): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 5 Executing (0853b3be-58c3-485f-bb83-01967893a587): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 5 traceID=undefined method=DELETE url=/v1/session/ status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/channel.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_channels" ("id","code","name","retry_count","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING "id","code","name","retry_count","regex","soft_delivery_failed_count","hard_delivery_failed_count","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe2a5cfe-6eba-4791-8a87-ad28321e0d31): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe2a5cfe-6eba-4791-8a87-ad28321e0d31): SELECT "id", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_channel_providers" AS "channel_providers" WHERE ("channel_providers"."deleted_at" IS NULL AND "channel_providers"."name" = 'crud-fixture'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (fe2a5cfe-6eba-4791-8a87-ad28321e0d31): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): INSERT INTO "pepper_channel_provider_config" ("id","channel_id","name","provider_id","organisation_id","config","configuration","version","iv","priority","status","created_at","updated_at","deleted_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,NOW(),$11,$12) RETURNING "id","channel_id","name","provider_id","organisation_id","config","configuration","data","version","iv","redirect_url","priority","status","created_at","updated_at","deleted_at","channel_id"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined Executing (default): SELECT "id", "code", "name", "retry_count", "regex", "soft_delivery_failed_count", "hard_delivery_failed_count", "created_at", "updated_at", "deleted_at" FROM "pepper_channels" AS "channels" WHERE ("channels"."deleted_at" IS NULL AND "channels"."id" = 38); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channels body={} headers={"x-gct-org-id":"80001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3604d6df-c977-4229-a774-89dff94f9f33): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3604d6df-c977-4229-a774-89dff94f9f33): SELECT "channel_provider_config"."id", "channel_provider_config"."name", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND "channel_provider_config"."organisation_id" = '80001'); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (3604d6df-c977-4229-a774-89dff94f9f33): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channels status=200 responseTime=8ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channels/41 body={} headers={"x-gct-org-id":"80001"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46395e44-01e9-4caf-bd60-03318c981e67): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46395e44-01e9-4caf-bd60-03318c981e67): SELECT "channel_provider_config"."id", "channel_provider_config"."name", "channel_provider_config"."data", "channel_provider_config"."status", "channel"."id" AS "channel.id", "channel"."name" AS "channel.name", "channel"."code" AS "channel.code" FROM "pepper_channel_provider_config" AS "channel_provider_config" INNER JOIN "pepper_channels" AS "channel" ON "channel_provider_config"."channel_id" = "channel"."id" AND ("channel"."deleted_at" IS NULL) WHERE ("channel_provider_config"."deleted_at" IS NULL AND ("channel_provider_config"."id" = '41' AND "channel_provider_config"."organisation_id" = '80001')); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (46395e44-01e9-4caf-bd60-03318c981e67): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channels/41 status=200 responseTime=3ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/file.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_files" ("id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at") VALUES (DEFAULT,$1,$2,$3,$4,$5,$6,$7) RETURNING "id","name","organisation_id","file_id","contentType","sizeInBytes","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/files/1261282578 body={} headers={"x-gct-org-id":"1693266602"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2f53515-5a0d-4017-b44b-38eae8b60077): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (f2f53515-5a0d-4017-b44b-38eae8b60077): SELECT "id", "name", "organisation_id", "file_id", "contentType", "sizeInBytes", "created_at", "updated_at", "deleted_at" FROM "pepper_files" AS "files" WHERE ("files"."deleted_at" IS NULL AND ("files"."file_id" = '1261282578' AND "files"."organisation_id" = '1693266602')) LIMIT 1; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) at async Promise.all (index 0) console.info INFO undefined 0 Executing (f2f53515-5a0d-4017-b44b-38eae8b60077): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/files/1261282578 status=200 responseTime=9ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/rule_operator.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/operators body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a7cbe57c-25f7-4432-affb-c5aeb45b95b3): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a7cbe57c-25f7-4432-affb-c5aeb45b95b3): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/operators status=200 responseTime=27ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/language.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined Executing (default): INSERT INTO "pepper_languages" ("code","name","created_at","updated_at") VALUES ($1,$2,$3,$4) ON CONFLICT ("code") DO UPDATE SET "name"=EXCLUDED."name","code"=EXCLUDED."code","updated_at"=EXCLUDED."updated_at" RETURNING "code","name","created_at","updated_at","deleted_at"; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/languages body={} headers={} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a242dafe-b691-472f-a565-31332d1fa73d): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a242dafe-b691-472f-a565-31332d1fa73d): SELECT "code", "name", "created_at", "updated_at", "deleted_at" FROM "pepper_languages" AS "languages" WHERE ("languages"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a242dafe-b691-472f-a565-31332d1fa73d): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/languages status=200 responseTime=5ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) PASS e2e/channel_provider.test.js ● Console console.debug MongoDB packages not found - skipping MongoDB instrumentation at Object. (../../node_modules/@greencapitaltrade/utils/build/src/tracing.js:91:17) console.info INFO undefined 0 Starting traceID=undefined method=GET url=/v1/channel_providers body={} headers={"x-gct-org-id":"1"} at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a11238c0-ebdb-44e8-b802-795159b3f498): START TRANSACTION; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a11238c0-ebdb-44e8-b802-795159b3f498): SELECT "channel_providers"."id", "channel_providers"."name", "channel_provider_configs"."id" AS "channel_provider_configs.id", "channel_provider_configs->channel"."id" AS "channel_provider_configs.channel.id", "channel_provider_configs->channel"."name" AS "channel_provider_configs.channel.name" FROM "pepper_channel_providers" AS "channel_providers" INNER JOIN "pepper_channel_provider_config" AS "channel_provider_configs" ON "channel_providers"."id" = "channel_provider_configs"."provider_id" AND ("channel_provider_configs"."deleted_at" IS NULL AND "channel_provider_configs"."organisation_id" IN ('1', NULL)) INNER JOIN "pepper_channels" AS "channel_provider_configs->channel" ON "channel_provider_configs"."channel_id" = "channel_provider_configs->channel"."id" AND ("channel_provider_configs->channel"."deleted_at" IS NULL) WHERE ("channel_providers"."deleted_at" IS NULL); at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 Executing (a11238c0-ebdb-44e8-b802-795159b3f498): COMMIT; at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) console.info INFO undefined 0 traceID=undefined method=GET url=/v1/channel_providers status=200 responseTime=26ms at console. [as info] (../../node_modules/@greencapitaltrade/utils/build/src/logging.js:51:21) -------------------------------|---------|----------|---------|---------|--------------------------------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------------------|---------|----------|---------|---------|--------------------------------------------------------- All files | 91.66 | 76.31 | 96.49 | 91.54 | server | 100 | 90.9 | 100 | 100 | app.js | 100 | 100 | 100 | 100 | handlebar.js | 100 | 90.9 | 100 | 100 | 31 redis.js | 100 | 100 | 100 | 100 | server/models | 94.56 | 78.98 | 96.84 | 94.65 | attachment.js | 100 | 100 | 100 | 100 | campaign.js | 88.33 | 70.21 | 92.3 | 87.73 | 125,201,209-220,318,433,551,554,584 campaign_step.js | 96.55 | 88.88 | 100 | 96.55 | 100 channel.js | 94.28 | 77.77 | 100 | 94.11 | 101,114 channel_provider.js | 100 | 100 | 100 | 100 | channel_provider_config.js | 92.78 | 76.66 | 100 | 92.78 | 69-75,111,224,255,300,358 file.js | 66.66 | 100 | 33.33 | 70 | 77-90 index.js | 100 | 100 | 100 | 100 | language.js | 100 | 100 | 100 | 100 | lead.js | 100 | 100 | 100 | 100 | lead_contact.js | 100 | 93.75 | 100 | 100 | 58 link.js | 100 | 100 | 100 | 100 | segment.js | 97.87 | 77.77 | 100 | 97.77 | 102 segment_lead.js | 100 | 100 | 100 | 100 | sms_log.js | 93.68 | 71.15 | 100 | 93.54 | 152-161,320,348-350,743 sms_log_event.js | 87.5 | 70 | 100 | 87.5 | 82,98 template.js | 100 | 100 | 100 | 100 | template_content.js | 100 | 87.17 | 100 | 100 | 132,180,272-286,296 server/providers | 94.28 | 87.5 | 100 | 94.28 | index.js | 94.28 | 87.5 | 100 | 94.28 | 95,107 server/providers/call | 100 | 66.66 | 100 | 100 | index.js | 100 | 100 | 100 | 100 | kookoo.js | 100 | 50 | 100 | 100 | 27-29 server/providers/email | 74.41 | 59.64 | 78.57 | 73.8 | aws.js | 75.7 | 58.82 | 80 | 75 | 108-121,139-142,148,192,216-241,278,296-297,320-321,329 base64.js | 30 | 0 | 0 | 30 | 5-19 index.js | 100 | 100 | 100 | 100 | server/providers/http | 100 | 100 | 100 | 100 | index.js | 100 | 100 | 100 | 100 | server/providers/notification | 100 | 75 | 83.33 | 100 | firebase.js | 100 | 66.66 | 75 | 100 | 77-111 index.js | 100 | 100 | 100 | 100 | server/providers/sms | 90.32 | 84.37 | 90.9 | 90 | gupshup.js | 97.36 | 100 | 75 | 97.29 | 141 index.js | 90.9 | 75 | 100 | 90.9 | 16 times.js | 84.09 | 77.77 | 100 | 83.33 | 16,50-51,96,102,130-131 server/providers/whatsapp | 82.89 | 67.46 | 100 | 82.17 | gupshup.js | 78.76 | 55.1 | 100 | 77.98 | 31-32,81-85,93,119,190-222,243-244,258,266 index.js | 96.29 | 90 | 100 | 96.15 | 70 meta.js | 83.72 | 73.13 | 100 | 82.92 | 39-76,85,275,375-376,384-390 server/queue | 78.04 | 61.11 | 100 | 77.77 | consume.js | 78.04 | 61.11 | 100 | 77.77 | 82-85,128-129,215,263-323 server/routes | 96.07 | 84.75 | 100 | 96.12 | attachment.js | 94.73 | 87.5 | 100 | 94.73 | 49 attributes.js | 100 | 100 | 100 | 100 | callback.js | 100 | 100 | 100 | 100 | campaign.js | 100 | 92.85 | 100 | 100 | 101 channel.js | 94.73 | 87.5 | 100 | 94.73 | 170-171 channel_provider.js | 100 | 100 | 100 | 100 | channel_provider_config.js | 100 | 100 | 100 | 100 | file.js | 100 | 100 | 100 | 100 | languages.js | 100 | 100 | 100 | 100 | lead.js | 90.95 | 75.32 | 100 | 90.58 | 26,116-121,176-179,243-244,285,306-307,588-592 lead_contact.js | 100 | 100 | 100 | 100 | links.js | 100 | 100 | 100 | 100 | message.js | 100 | 93.33 | 100 | 100 | 184 rule_operator.js | 100 | 100 | 100 | 100 | segment.js | 95.45 | 92.3 | 100 | 95.45 | 46 session.js | 100 | 75 | 100 | 100 | 17 sms.js | 100 | 100 | 100 | 100 | template.js | 100 | 100 | 100 | 100 | template_content.js | 100 | 100 | 100 | 100 | server/tests | 100 | 100 | 100 | 100 | provider-fixture.js | 100 | 100 | 100 | 100 | -------------------------------|---------|----------|---------|---------|--------------------------------------------------------- Test Suites: 26 passed, 26 total Tests: 132 passed, 132 total Snapshots: 0 total Time: 27.978 s Ran all test suites. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > pepper@0.0.1 test:outbox > node --test packages/server/tests/database-guard.integration.cjs packages/server/tests/outbox-worker.integration.cjs ✔ allows the dedicated database through db (30.466247ms) ✔ allows the dedicated database through 127.0.0.1 (24.527583ms) ✔ allows the dedicated database through localhost (23.698766ms) ✔ rejects production mode before database commands can run (27.858038ms) ✔ rejects an application database before database commands can run (28.035563ms) ✔ rejects a remote database before database commands can run (26.513859ms) ✔ rejects a remote reader before database commands can run (28.250957ms) Outbox worker started (poll=50ms, batch=100, retention=7d) Outbox worker stopped ✔ an idle queue survives repeated poll ticks without errors (316.842108ms) Outbox worker started (poll=50ms, batch=100, retention=7d) Outbox worker: published 2/2 messages Outbox worker stopped ✔ every returned row is published with its original payload and headers (82.721615ms) Outbox worker started (poll=50ms, batch=2, retention=7d) Outbox worker started (poll=50ms, batch=2, retention=7d) Outbox worker: published 2/2 messages Outbox worker: published 2/2 messages Outbox worker: published 2/2 messages Outbox worker stopped Outbox worker stopped ✔ two workers claim disjoint batches without duplicate publication (126.114745ms) Outbox worker started (poll=50ms, batch=100, retention=7d) Outbox worker: published 1/1 messages Outbox worker: published 1/1 messages Outbox worker stopped ✔ a failed publish records backoff and retries the same event (120.765075ms) ℹ tests 11 ℹ suites 0 ℹ pass 11 ℹ fail 0 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 1119.27223 Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-build-assets npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > pepper@0.0.1 build:web > npm run build -w next-app npm warn Unknown env config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. npm warn Unknown user config "unsafe-perm". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options. > next-app@0.1.0 build > NODE_ENV=production next build Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry ▲ Next.js 14.2.4 Creating an optimized production build ... ✓ Compiled successfully Linting and checking validity of types ... Collecting page data ... Generating static pages (0/20) ... (node:156) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided. (Use `node --trace-warnings ...` to show where the warning was created) (node:150) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided. (Use `node --trace-warnings ...` to show where the warning was created) Generating static pages (5/20) (node:159) ExperimentalWarning: localStorage is not available because --localstorage-file was not provided. (Use `node --trace-warnings ...` to show where the warning was created) Generating static pages (10/20) Generating static pages (15/20) ✓ Generating static pages (20/20) Finalizing page optimization ... Collecting build traces ... Route (app) Size First Load JS ┌ ○ / 2.03 kB 154 kB ├ ○ /_not-found 876 B 88.4 kB ├ ○ /attributes 2.59 kB 142 kB ├ ○ /attributes/new 4.1 kB 223 kB ├ ○ /auth/login 2.03 kB 154 kB ├ ○ /auth/signup 3.02 kB 163 kB ├ ○ /campaigns 3.15 kB 148 kB ├ ƒ /campaigns/[id]/analytics 2.72 kB 142 kB ├ ƒ /campaigns/[id]/edit 1.69 kB 300 kB ├ ○ /campaigns/new 708 B 299 kB ├ ○ /channels 3.01 kB 208 kB ├ ƒ /channels/[id] 4.76 kB 193 kB ├ ○ /health 0 B 0 B ├ ○ /leads 4.5 kB 191 kB ├ ƒ /leads/[id] 4.26 kB 149 kB ├ ƒ /leads/[id]/edit 702 B 230 kB ├ ○ /leads/new 704 B 230 kB ├ ○ /segments 1.2 kB 134 kB ├ ƒ /segments/[id] 3.03 kB 143 kB ├ ƒ /segments/[id]/edit 328 B 225 kB ├ ○ /segments/new 329 B 225 kB ├ ○ /templates 2.8 kB 148 kB ├ ƒ /templates/[id] 3.55 kB 203 kB ├ ƒ /templates/[id]/attachments/new 1.28 kB 216 kB ├ ƒ /templates/[id]/edit 2.37 kB 231 kB ├ ƒ /templates/[id]/languages/[contentId] 1.02 kB 866 kB ├ ƒ /templates/[id]/languages/new 866 B 866 kB ├ ○ /templates/email 2.89 kB 719 kB └ ○ /templates/new 2.45 kB 231 kB + First Load JS shared by all 87.6 kB ├ chunks/3205-a8ab61f0de1d850b.js 31.5 kB ├ chunks/618f8807-d97f2bba5d5f45a7.js 53.6 kB └ other shared chunks (total) 2.4 kB ○ (Static) prerendered as static content ƒ (Dynamic) server-rendered on demand Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-check-registry sourcing .jx/variables.sh verifying the container registry is setup WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set about to run: git clone --no-checkout --filter=blob:none --depth=1 https://github.com/greencapitaltrade/mcu.git /tmp/jx-git-3717229522 in dir /tmp Cloning into '/tmp/jx-git-3717229522'... about to run: git sparse-checkout set --no-cone jx-requirements.yml .jx/gitops/source-config.yaml in dir /tmp/jx-git-3717229522 about to run: git checkout in dir /tmp/jx-git-3717229522 Your branch is up to date with 'origin/main'. verifying that container registry 417755753340.dkr.ecr.ap-south-1.amazonaws.com with organisation greencapitaltrade and app name pepper has an ECR associated with it loading config with AWS region: 'ap-south-1' Let's ensure that we have an ECR repository for the image greencapitaltrade/pepper Found repository: greencapitaltrade/pepper Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-build-container-build time="2026-10-23T15:19:39Z" level=warning msg="Flag --snapshotMode is deprecated. Use: --snapshot-mode" INFO[0000] Using dockerignore file: /workspace/source/.dockerignore INFO[0000] Retrieving image manifest node:26-slim INFO[0000] Retrieving image node:26-slim from registry index.docker.io INFO[0001] Built cross stage deps: map[] INFO[0001] Retrieving image manifest node:26-slim INFO[0001] Returning cached image manifest INFO[0001] Executing 0 build triggers INFO[0001] Building stage 'node:26-slim' [idx: '0', base-idx: '-1'] INFO[0001] Unpacking rootfs as cmd COPY . . requires it. INFO[0005] ENV TZ='Asia/Kolkata' INFO[0005] COPY . . INFO[0038] Taking snapshot of files... INFO[0058] CMD cd packages/server && npx sequelize db:migrate && node index.js INFO[0058] Pushing image to 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/pepper:0.89.0 INFO[0064] Pushed 417755753340.dkr.ecr.ap-south-1.amazonaws.com/greencapitaltrade/pepper@sha256:602add57c0360d760bcb1ef47a340c36a4139f08c58012bae22b8e86b1fcd401 Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container step-promote-jx-preview found PullRequest https://github.com/greencapitaltrade/pepper/pull/1038 using ingress sub domain -jx-greencapitaltrade-pepper-pr-1038. upserted preview jx-greencapitaltrade-pepper-pr-1038 passing env vars into helmfile: map[string]string{"APP_NAME":"pepper", "DOCKER_REGISTRY":"417755753340.dkr.ecr.ap-south-1.amazonaws.com", "DOCKER_REGISTRY_ORG":"greencapitaltrade", "PREVIEW_NAMESPACE":"jx-greencapitaltrade-pepper-pr-1038", "PR_HEAD_REF":"fix/pepper-outbox-dependency", "PULL_NUMBER":"1038", "VERSION":"0.89.0"} jx-greencapitaltrade-pepper-pr-1038: LAST SEEN TYPE REASON OBJECT MESSAGE jx-greencapitaltrade-pepper-pr-1038: 2m38s Warning FailedToRetrieveImagePullSecret pod/postgresql-0 Unable to retrieve some image pull secrets (nexus-docker); attempting to pull the image may not succeed. jx-greencapitaltrade-pepper-pr-1038: 101s Warning FailedToRetrieveImagePullSecret pod/redis-master-0 Unable to retrieve some image pull secrets (nexus-docker); attempting to pull the image may not succeed. jx-greencapitaltrade-pepper-pr-1038: 0s Normal SuccessfulCreate job/jx-verify-gc-jobs-h78pn Created pod: jx-verify-gc-jobs-h78pn-b6rr6 jx-greencapitaltrade-pepper-pr-1038: 0s Normal Scheduled pod/jx-verify-gc-jobs-h78pn-b6rr6 Successfully assigned jx-greencapitaltrade-pepper-pr-1038/jx-verify-gc-jobs-h78pn-b6rr6 to ip-10-0-83-16.ap-south-1.compute.internal killed the kubectl event watch command found helm preview release jx-verify in namespace jx-greencapitaltrade-pepper-pr-1038 WARNING: failed to find preview url in kafka-cluster-kafka-bootstrap service the server could not find the requested resource (get services.serving.knative.dev kafka-cluster-kafka-bootstrap) WARNING: failed to find preview url in kafka-cluster-kafka-brokers service the server could not find the requested resource (get services.serving.knative.dev kafka-cluster-kafka-brokers) preview jx-greencapitaltrade-pepper-pr-1038 is now running at http://pepper-jx-greencapitaltrade-pepper-pr-1038.gc-t.in updated preview jx-greencapitaltrade-pepper-pr-1038 with URL http://pepper-jx-greencapitaltrade-pepper-pr-1038.gc-t.in Updated PipelineActivity greencapitaltrade-pepper-pr-1038-2 which has status Pending wrote preview environment variables to .jx/variables.sh commented on pull request #1038 on repository greencapitaltrade/pepper Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container sidecar-test-postgres 2026/10/23 15:21:01 Exiting... Showing logs for build greencapitaltrade/pepper/pr-1038 #2 stage from-build-pack and container sidecar-test-redis 2026/10/23 15:21:01 Exiting...