fix sanitize bug by having different SanitizedString type name when creating new instances

This commit is contained in:
Hongbo Wu
2022-02-16 11:13:19 +08:00
committed by Jackson Harper
parent e327b7c57f
commit c1ffd9abdf

View File

@ -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) {