fix sanitize bug by having different SanitizedString type name when creating new instances
This commit is contained in:
committed by
Jackson Harper
parent
e327b7c57f
commit
c1ffd9abdf
@ -11,7 +11,7 @@ export class SanitizedString extends GraphQLScalarType {
|
||||
maxLength?: number
|
||||
) {
|
||||
super({
|
||||
name: 'SanitizedString',
|
||||
name: `SanitizedString_${allowedTags}_${maxLength}`,
|
||||
description: 'Source string that was sanitized',
|
||||
|
||||
serialize(value: string) {
|
||||
|
||||
Reference in New Issue
Block a user