From 55c6525741c7f1521c065e79989052a795e87b6b Mon Sep 17 00:00:00 2001 From: maslow Date: Tue, 24 Oct 2023 21:35:05 +0800 Subject: [PATCH] chore(deploy): fix sealos version --- deploy/install-on-linux.sh | 4 ++-- runtimes/nodejs/src/handler/invoke.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/install-on-linux.sh b/deploy/install-on-linux.sh index ad9680c0e1..5e7e377d40 100644 --- a/deploy/install-on-linux.sh +++ b/deploy/install-on-linux.sh @@ -18,7 +18,7 @@ if [ -x "$(command -v apt)" ]; then echo "deb [trusted=yes] https://apt.fury.io/labring/ /" | tee /etc/apt/sources.list.d/labring.list apt update apt install iptables host -y - apt install sealos -y + apt install sealos=4.3.5 -y # fix /etc/hosts overwrite bug in ubuntu while restarting sed -i "/update_etc_hosts/c \\ - ['update_etc_hosts', 'once-per-instance']" /etc/cloud/cloud.cfg && touch /var/lib/cloud/instance/sem/config_update_etc_hosts @@ -36,7 +36,7 @@ EOF # yum update yum clean all yum install -y bind-utils iptables - yum install sealos -y + yum install sealos=4.3.5 -y fi ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) diff --git a/runtimes/nodejs/src/handler/invoke.ts b/runtimes/nodejs/src/handler/invoke.ts index f4e56add04..159b03a5b9 100644 --- a/runtimes/nodejs/src/handler/invoke.ts +++ b/runtimes/nodejs/src/handler/invoke.ts @@ -58,7 +58,6 @@ async function invokeFunction( let func = FunctionCache.getEngine(ctx.request.params?.name) if (!func) { - console.log('not found') func = FunctionCache.getEngine(DEFAULT_FUNCTION_NAME) if (!func) { return ctx.response.status(404).send('Function Not Found')