Function
checkInputs
(inputModerations: Moderation[], input: string)
Source from the content-addressed store, hash-verified
| 5 | } |
| 6 | |
| 7 | export const checkInputs = async (inputModerations: Moderation[], input: string): Promise<string> => { |
| 8 | for (const moderation of inputModerations) { |
| 9 | input = await moderation.checkForViolations(input) |
| 10 | } |
| 11 | return input |
| 12 | } |
| 13 | |
| 14 | // is this the correct location for this function? |
| 15 | // should we have a utils files that all node components can use? |
Tested by
no test coverage detected