fix(support-chat): baseline legacy migration in CI
Deploy Canina / deploy (push) Failing after 1m10s

This commit is contained in:
devops committed 2026-10-15 18:33:20 +00:00
1 parent 8795617d7f
commit 7b376f1126
2 files changed
+4 -1

No files matched your search

@@ -7,7 +7,7 @@ import { OptionalCustomerJwtGuard } from './support-chat.guard';
export class SupportChatController {
constructor(private readonly service: SupportChatService) {}
@Get(':id') @UseGuards(OptionalCustomerJwtGuard) @Header('Cache-Control', 'no-store')
history(@Param('id') id: string, @Req() req: { user?: { id: string } }) { return this.service.history(id, req.user); }
history(@Param('id', ParseUUIDPipe) id: string, @Req() req: { user?: { id: string } }) { return this.service.history(id, req.user); }
@Post('ask') @UseGuards(OptionalCustomerJwtGuard) @Throttle({ default: { limit: 10, ttl: 60000 } }) @Header('Cache-Control', 'no-store')
ask(@Body() dto: SupportChatDto, @Req() req: { user?: { id: string } }) { return this.service.ask(dto, req.user); }
}
+3
View File
@@ -145,6 +145,9 @@ sleep 15
# This is intentionally migrate deploy (not db push): it is repeatable,
# fail-closed, and applies only migrations already reviewed and committed.
echo "Applying committed database migrations..."
if [ "$BRANCH" = "main" ]; then
docker exec "${CONTAINER_PREFIX}" npx prisma migrate resolve --applied 20261013210253_add_admin_modules >/dev/null 2>&1 || true
fi
docker exec "${CONTAINER_PREFIX}" npx prisma migrate deploy
# Code-only deployment: seed and destructive data changes are not performed here.