Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed May 31, 2024
1 parent cd6b6e1 commit 24b7b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-start-console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ init() {
echo "Initializing console..."
inited="1"
curl --silent --show-error http://$(hostname -f):3000/api/admin/events-log-init?token=$CONSOLE_INIT_TOKEN
echo ""
fi
}

Expand Down Expand Up @@ -57,7 +58,7 @@ healthcheck() {
if [ -f healthcheck-result ]; then
cat healthcheck-result
fi
echo "Running init..."
echo ""
init
else
if [ "$http_code" = "000" ]; then
Expand Down
2 changes: 1 addition & 1 deletion webapps/console/pages/api/admin/events-log-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { checkRawToken, getLog } from "juava";
import { clickhouse } from "../../../lib/server/clickhouse";
import { z } from "zod";

export const log = getLog("events-log-trim");
export const log = getLog("events-log-init");

export default createRoute()
.GET({
Expand Down

0 comments on commit 24b7b58

Please sign in to comment.