fix: add explicit type for modelId GraphQL arg
NestJS GraphQL requires explicit type annotations for nullable string parameters. https://claude.ai/code/session_01EcJHCeJy44AKw2rafgQcnu
This commit is contained in:
+2
-1
@@ -125,7 +125,8 @@ export class AgentChatResolver {
|
||||
@Args('messageId', { type: () => UUIDScalarType }) messageId: string,
|
||||
@Args('browsingContext', { type: () => GraphQLJSON, nullable: true })
|
||||
browsingContext: BrowsingContextType | null,
|
||||
@Args('modelId', { nullable: true }) modelId: string | undefined,
|
||||
@Args('modelId', { type: () => String, nullable: true })
|
||||
modelId: string | undefined,
|
||||
@AuthUserWorkspaceId() userWorkspaceId: string,
|
||||
@AuthWorkspace() workspace: WorkspaceEntity,
|
||||
): Promise<SendChatMessageResultDTO> {
|
||||
|
||||
Reference in New Issue
Block a user