Fix ci-server ci (#18180)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user