Skip to content

Commit 5a64114

Browse files
committedMar 27, 2025
Includes reason field when fetching model moderation rules
1 parent 8c7eb40 commit 5a64114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/services/model.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2838,7 +2838,7 @@ export async function getModelModRules() {
28382838
async () => {
28392839
const rules = await dbRead.moderationRule.findMany({
28402840
where: { entityType: EntityType.Model, enabled: true },
2841-
select: { id: true, definition: true, action: true },
2841+
select: { id: true, definition: true, action: true, reason: true },
28422842
orderBy: [{ order: 'asc' }],
28432843
});
28442844

0 commit comments

Comments
 (0)