owner ID not null

* Feature owner ID is never null.
* For 'extra geometry', system user ID=0 is used.
This commit is contained in:
zegkljan
2022-02-03 09:22:11 +01:00
parent 7471c89143
commit caeb5c9198
3 changed files with 6 additions and 17 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ type Feature struct {
// ID is an ID of the feature.
// When the feature is submitted by a client for creation (i.e. in Update.Create) it is considered a 'local' ID which must be unique across all submitted features.
ID FeatureID `json:"id"`
OwnerID *UserID `json:"owner_id"`
OwnerID UserID `json:"owner_id"`
Name string `json:"name"`
Properties map[string]interface{} `json:"properties"`
Geometry geojson.Geometry `json:"geometry"`