mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:03:30 +00:00
added handler for getting uid in postGeoObject endpoint
This commit is contained in:
@@ -30,6 +30,7 @@ func armatak_service_ManageGeoObject_postGeoObject(args []string) (string, error
|
||||
}
|
||||
|
||||
payload := GeoObject{
|
||||
UID: args[0],
|
||||
Longitude: longitude,
|
||||
Latitude: latitude,
|
||||
Attitude: args[3],
|
||||
@@ -64,8 +65,14 @@ func armatak_service_ManageGeoObject_putGeoObject(args []string) (string, error)
|
||||
bearing = 0
|
||||
}
|
||||
|
||||
uid := ""
|
||||
|
||||
if args[0] != "<null>" {
|
||||
uid = args[0]
|
||||
}
|
||||
|
||||
payload := GeoObject{
|
||||
UID: args[0],
|
||||
UID: uid,
|
||||
Longitude: longitude,
|
||||
Latitude: latitude,
|
||||
Attitude: args[3],
|
||||
|
||||
Reference in New Issue
Block a user