Skip to content

Commit

Permalink
Fixed merge issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Dec 30, 2024
1 parent 4ba04c7 commit b2bc9d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/service/apple_mdm.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ func (svc *Service) NewMDMAppleDeclaration(ctx context.Context, teamID uint, r i
return nil, err
}

if err := svc.ds.ValidateEmbeddedSecrets(ctx, []string{string(data)}); err != nil {
dataWithSecrets, secretsUpdatedAt, err := svc.ds.ExpandEmbeddedSecretsAndUpdatedAt(ctx, string(data))
if err != nil {
return nil, fleet.NewInvalidArgumentError("profile", err.Error())
}

Expand Down

0 comments on commit b2bc9d0

Please sign in to comment.