fix: resolve TS error in seed.ts + use compose.deploy for CI

This commit is contained in:
2026-01-30 04:26:10 +00:00
parent 30a535c481
commit 5c9df803c2
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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}...`);