diff --git a/src/management-system-v2/lib/data/file-manager-facade.ts b/src/management-system-v2/lib/data/file-manager-facade.ts index 1d0af0214..d1da62476 100644 --- a/src/management-system-v2/lib/data/file-manager-facade.ts +++ b/src/management-system-v2/lib/data/file-manager-facade.ts @@ -326,7 +326,7 @@ export async function updateArtifactProcessReference( processId: string, status: boolean, ) { - if (DEPLOYMENT_ENV !== 'cloud') return; + //if (DEPLOYMENT_ENV !== 'cloud') return; const artifact = await db.artifact.findUnique({ where: { fileName }, diff --git a/src/management-system-v2/prisma/schema.prisma b/src/management-system-v2/prisma/schema.prisma index ea6d4c5dd..fd6531431 100644 --- a/src/management-system-v2/prisma/schema.prisma +++ b/src/management-system-v2/prisma/schema.prisma @@ -93,7 +93,7 @@ model Artifact { artifactType String // user-task, script, image, etc. processReferences ArtifactProcessReference[] // Relation to track references versionReferences ArtifactVersionReference[] - refCounter Int @default(1) + refCounter Int @default(0) @@map("artifact") }