added handler for getting uid in postGeoObject endpoint

This commit is contained in:
Valmo Trindade
2024-07-30 13:37:14 -03:00
parent 1a4ed09e5c
commit d036f50d4f

View File

@@ -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],