1
0
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:
Gani Georgiev 2023-07-25 06:11:50 +03:00
parent 8dfc90985b
commit 54a6ae6710

View File

@ -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)