Skip to content

Commit 6021da6

Browse files
authored
Merge pull request #1061 from b4s36t4/fix/azure-plugin-blocklist
fix: azure content safety plugin with blocklist
2 parents 40c4eef + ba10910 commit 6021da6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/azure/contentSafety.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ export const handler: PluginHandler<{
116116
);
117117

118118
// Check if any blocklist items were hit
119-
const hasBlocklistHit = response.blocklistsMatch?.some((match: any) => {
120-
return match.matchResults.length > 0;
121-
});
119+
const hasBlocklistHit = response.blocklistsMatch?.length > 0;
122120

123121
verdict = !(hasHarmfulContent || hasBlocklistHit);
124122
}

0 commit comments

Comments
 (0)