diff --git a/internal/db/postgres/transformers/masking.go b/internal/db/postgres/transformers/masking.go index 5ed43734..9f98c0d7 100644 --- a/internal/db/postgres/transformers/masking.go +++ b/internal/db/postgres/transformers/masking.go @@ -34,7 +34,7 @@ const ( MMobile string = "mobile" MTelephone string = "tel" MID string = "id" - MCreditCard string = "credit_cart" + MCreditCard string = "credit_card" MURL string = "url" MDefault string = "default" ) @@ -50,14 +50,15 @@ var MaskingTransformerDefinition = utils.NewDefinition( toolkit.MustNewParameter( "column", "column name", - ).SetIsColumn(toolkit.NewColumnProperties(). - SetAffected(true). - SetAllowedColumnTypes("text", "varchar"), + ).SetIsColumn( + toolkit.NewColumnProperties(). + SetAffected(true). + SetAllowedColumnTypes("text", "varchar"), ).SetRequired(true), toolkit.MustNewParameter( "type", - "logical type of attribute (default, password, name, addr, email, mobile, tel, id, credit, url)", + "logical type of attribute (default, password, name, addr, email, mobile, tel, id, credit_card, url)", ).SetRawValueValidator(maskerTypeValidator). SetDefaultValue(toolkit.ParamsValue(MDefault)), ) diff --git a/internal/db/postgres/transformers/utils/template/functions.go b/internal/db/postgres/transformers/utils/template/functions.go index 541f0974..525eae09 100644 --- a/internal/db/postgres/transformers/utils/template/functions.go +++ b/internal/db/postgres/transformers/utils/template/functions.go @@ -47,7 +47,7 @@ const ( MMobile string = "mobile" MTelephone string = "tel" MID string = "id" - MCreditCard string = "credit_cart" + MCreditCard string = "credit_card" MURL string = "url" MDefault string = "default" )