From 5c9df803c25e9df58f1f0e72f45dabe5f1fe1815 Mon Sep 17 00:00:00 2001 From: Hammer Date: Fri, 30 Jan 2026 04:26:10 +0000 Subject: [PATCH] fix: resolve TS error in seed.ts + use compose.deploy for CI --- .gitea/workflows/ci.yml | 4 ++-- src/db/seed.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b19f3b6..30488a5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -33,8 +33,8 @@ jobs: steps: - name: Deploy to Dokploy run: | - curl -fsSL -X POST "${{ secrets.DOKPLOY_URL }}/api/application.deploy" \ + curl -fsSL -X POST "${{ secrets.DOKPLOY_URL }}/api/compose.deploy" \ -H "Content-Type: application/json" \ -H "x-api-key: ${{ secrets.DOKPLOY_API_TOKEN }}" \ - -d '{"applicationId": "${{ secrets.DOKPLOY_APP_ID }}"}' + -d '{"composeId": "${{ secrets.DOKPLOY_COMPOSE_ID }}"}' echo "Deploy triggered on Dokploy" diff --git a/src/db/seed.ts b/src/db/seed.ts index c08b507..dbe3987 100644 --- a/src/db/seed.ts +++ b/src/db/seed.ts @@ -12,7 +12,7 @@ async function seed() { SELECT tablename FROM pg_tables WHERE schemaname = 'public' `); - for (const row of tables.rows) { + for (const row of tables as any) { const table = (row as any).tablename; if (table.startsWith('__drizzle') || table.startsWith('pgboss')) continue; console.log(` Truncating ${table}...`);