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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user