From 50bb7a076a3d9e492ac2acd6925ee7df9cf62423 Mon Sep 17 00:00:00 2001 From: anish Date: Wed, 8 Jan 2025 21:06:24 +0530 Subject: [PATCH] minor fix: refCounter --- src/management-system-v2/lib/data/file-manager-facade.ts | 2 +- src/management-system-v2/prisma/schema.prisma | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") }