Skip to content

Commit

Permalink
updated record.PublicExport comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Jul 25, 2023
1 parent 8dfc909 commit 54a6ae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ func (m *Record) ColumnValueMap() map[string]any {

// PublicExport exports only the record fields that are safe to be public.
//
// Fields marked as hidden will be exported only if `m.IgnoreEmailVisibility(true)` is set.
// For auth records, to force the export of the email field you need to set
// `m.IgnoreEmailVisibility(true)`.
func (m *Record) PublicExport() map[string]any {
result := make(map[string]any, len(m.collection.Schema.Fields())+5)

Expand Down

0 comments on commit 54a6ae6

Please sign in to comment.