fix: code review cleanup

- Replace all 'any' types with proper Prisma types
- Fix exactOptionalPropertyTypes compatibility
- Export AuthUser type from better-auth-request.interface
- Remove duplicate empty migration folder
- Ensure proper JSON handling with Prisma.InputJsonValue

All agent-tasks tests passing (18/18)
This commit is contained in:
Jason Woltje
2026-01-29 23:35:40 -06:00
parent da4fb72902
commit 562859202b
3 changed files with 54 additions and 19 deletions

View File

@@ -19,6 +19,7 @@ import { AuthGuard } from "../auth/guards/auth.guard";
import { WorkspaceGuard, PermissionGuard } from "../common/guards";
import { Workspace, Permission, RequirePermission } from "../common/decorators";
import { CurrentUser } from "../auth/decorators/current-user.decorator";
import type { AuthUser } from "../auth/types/better-auth-request.interface";
/**
* Controller for agent task endpoints
@@ -44,7 +45,7 @@ export class AgentTasksController {
async create(
@Body() createAgentTaskDto: CreateAgentTaskDto,
@Workspace() workspaceId: string,
@CurrentUser() user: any
@CurrentUser() user: AuthUser
) {
return this.agentTasksService.create(
workspaceId,