From 67f3bec9f10d0bade1c45869bb779313202be884 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 10 Aug 2022 12:41:25 +0000 Subject: [PATCH] fix: cleanup command --- apps/api/src/routes/api/v1/services/handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/routes/api/v1/services/handlers.ts b/apps/api/src/routes/api/v1/services/handlers.ts index ae32cc21c..0fd6061ea 100644 --- a/apps/api/src/routes/api/v1/services/handlers.ts +++ b/apps/api/src/routes/api/v1/services/handlers.ts @@ -2667,7 +2667,7 @@ export async function cleanupPlausibleLogs(request: FastifyRequest, repl if (destinationDockerId) { await executeDockerCmd({ dockerId: destinationDocker.id, - command: `docker exec ${id}-clickhouse 'clickhouse-client -q "SELECT name FROM system.tables WHERE name LIKE '%log%';" | xargs -I{} clickhouse-client -q "TRUNCATE TABLE system.{};"'` + command: `docker exec ${id}-clickhouse clickhouse-client -q "SELECT name FROM system.tables WHERE name LIKE '%log%';" | xargs -I{} clickhouse-client -q "TRUNCATE TABLE system.{};"` }) return await reply.code(201).send() }