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:
Claude
2026-04-02 06:15:04 +00:00
parent 14d4b98e8a
commit 2fae1b97f4
@@ -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> {