mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-01-09 10:07:17 +02:00
updated record.PublicExport comment
This commit is contained in:
parent
8dfc90985b
commit
54a6ae6710
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user