Skip to content

Commit 00b42e5

Browse files
committed
Update reviewMode field
1 parent 2135f95 commit 00b42e5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Add reviewMethod enum and column to aiWorkflow.
2-
CREATE TYPE "ReviewMethod" AS ENUM ('AI-Assisted', 'Deterministic');
2+
CREATE TYPE "ReviewMethod" AS ENUM ('AI_ASSISTED', 'DETERMINISTIC');
33

44
ALTER TABLE "aiWorkflow"
5-
ADD COLUMN "reviewMethod" "ReviewMethod" NOT NULL DEFAULT 'AI-Assisted';
5+
ADD COLUMN "reviewMethod" "ReviewMethod" NOT NULL DEFAULT 'AI_ASSISTED';

prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,8 @@ enum AiReviewDecisionEscalationStatus {
700700
}
701701

702702
enum ReviewMethod {
703-
AI_ASSISTED @map("AI-Assisted")
704-
DETERMINISTIC @map("Deterministic")
703+
AI_ASSISTED
704+
DETERMINISTIC
705705
}
706706

707707
model aiWorkflow {

src/api/ai-workflow/ai-workflow.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export class AiWorkflowService {
399399
scorecardId,
400400
llmId,
401401
disabled: createAiWorkflowDto.disabled ?? false,
402-
reviewMethod: reviewMethod,
402+
reviewMethod,
403403
timeoutSeconds,
404404
},
405405
})

0 commit comments

Comments
 (0)