Skip to content

Commit

Permalink
feat: add metadata for org create webhook (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Jun 5, 2024
1 parent 9c159db commit ee06409
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/api/v1beta1/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ func (h Handler) CreateOrganization(ctx context.Context, request *frontierv1beta
return nil, grpcInternalServerError
}

audit.GetAuditor(ctx, newOrg.ID).Log(audit.OrgCreatedEvent, audit.OrgTarget(newOrg.ID))
audit.GetAuditor(ctx, newOrg.ID).LogWithAttrs(audit.OrgCreatedEvent, audit.OrgTarget(newOrg.ID), map[string]string{
"title": newOrg.Title,
"name": newOrg.Name,
})
return &frontierv1beta1.CreateOrganizationResponse{Organization: orgPB}, nil
}

Expand Down

0 comments on commit ee06409

Please sign in to comment.