fix: email template resolver and for matting changes
This commit is contained in:
parent
ae84213e34
commit
5c8f9406f6
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/authorizerdev/authorizer/server/db"
|
||||
"github.com/authorizerdev/authorizer/server/db/models"
|
||||
"github.com/authorizerdev/authorizer/server/graph/model"
|
||||
"github.com/authorizerdev/authorizer/server/refs"
|
||||
"github.com/authorizerdev/authorizer/server/token"
|
||||
"github.com/authorizerdev/authorizer/server/utils"
|
||||
"github.com/authorizerdev/authorizer/server/validators"
|
||||
|
@ -42,7 +43,7 @@ func AddEmailTemplateResolver(ctx context.Context, params model.AddEmailTemplate
|
|||
|
||||
var design string
|
||||
|
||||
if params.Design == nil || strings.TrimSpace(*params.Design) == "" {
|
||||
if params.Design == nil || strings.TrimSpace(refs.StringValue(params.Design)) == "" {
|
||||
design = ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user