Skip to content

Commit

Permalink
minor fix: refCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
anishsapkota committed Jan 8, 2025
1 parent efc0742 commit 50bb7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/management-system-v2/lib/data/file-manager-facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion src/management-system-v2/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 50bb7a0

Please sign in to comment.