Fix ci-server ci (#18180)

This commit is contained in:
Paul Rastoin
2026-02-24 12:51:46 +01:00
committed by GitHub
parent 959cbfb725
commit c6ec764b23
14 changed files with 116 additions and 54 deletions
@@ -2,7 +2,7 @@ import { UseGuards, UseInterceptors } from '@nestjs/common';
import { Args, Mutation, Query } from '@nestjs/graphql';
import { PermissionFlagType } from 'twenty-shared/constants';
import { isDefined } from 'twenty-shared/utils';
import { isNonEmptyString } from '@sniptt/guards';
import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/feature-flag-key.enum';
import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
@@ -74,7 +74,7 @@ export class AgentResolver {
@Args('input') input: CreateAgentInput,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<AgentDTO> {
if (isDefined(input.modelId)) {
if (isNonEmptyString(input.modelId)) {
this.aiModelRegistryService.validateModelAvailability(
input.modelId,
workspace,
@@ -96,7 +96,7 @@ export class AgentResolver {
@Args('input') input: UpdateAgentInput,
@AuthWorkspace() workspace: WorkspaceEntity,
): Promise<AgentDTO> {
if (isDefined(input.modelId)) {
if (isNonEmptyString(input.modelId)) {
this.aiModelRegistryService.validateModelAvailability(
input.modelId,
workspace,