Update moderation.ts
This commit is contained in:
parent
2bedc629ee
commit
9307319693
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ export async function isNameAppropriate(name: string): Promise<boolean> {
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await response.json();
|
const result = await response.json();
|
||||||
|
console.log('Checked name with moderation service:', name, " result: ", result.appropriate);
|
||||||
|
|
||||||
return result.appropriate !== false;
|
return result.appropriate !== false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to check name with moderation service:', error);
|
console.error('Failed to check name with moderation service:', error);
|
||||||
|
|
|
||||||
Reference in a new issue