Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Feb 2, 2024
1 parent ecbad0f commit 0e009aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/skus/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1012,12 +1012,16 @@ func handleAndroidWebhook(service *Service, valid *validator.Validate) handlers.
return handlers.ValidationError("request body", err)
}

l.Info().Interface("dn_bytes", string(b)).Msg("dn_bytes")

dn, err := parseDeveloperNotification(b)
if err != nil {
l.Warn().Err(err).Msg("error parsing notification")
return handlers.ValidationError("parse notification", err)
}

l.Info().Interface("dn", dn).Msg("dn")

if err := valid.StructCtx(ctx, &dn); err != nil {
l.Warn().Err(err).Msg("validation errors")

Expand Down

0 comments on commit 0e009aa

Please sign in to comment.