Skip to content

Commit e88b40d

Browse files
committed
omit empty
1 parent a816b3f commit e88b40d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mongo/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type mongoUser struct {
99
ID bson.ObjectID `bson:"_id"`
1010
Entities []mongoAuthorizationEntity `bson:"entities"`
11-
Info map[string]any `bson:"info"`
11+
Info map[string]any `bson:"info,omitempty"`
1212
Deleted bool `bson:"deleted"`
1313
Services []string `bson:"services"`
1414
}

0 commit comments

Comments
 (0)