mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-06 13:38:05 +00:00
Fixing location entity does not exist
This commit is contained in:
@@ -137,7 +137,7 @@ namespace OpenWifi{
|
||||
std::string MoveFromEntity,MoveToEntity;
|
||||
bool MovingEntity=false;
|
||||
if(AssignIfPresent(RawObject,"entity",MoveToEntity)) {
|
||||
if(!MoveToEntity.empty() || !Storage()->EntityDB().Exists("id",MoveToEntity)) {
|
||||
if(!MoveToEntity.empty() && !Storage()->EntityDB().Exists("id",MoveToEntity)) {
|
||||
return BadRequest(RESTAPI::Errors::EntityMustExist);
|
||||
}
|
||||
MoveFromEntity = Existing.entity;
|
||||
|
||||
Reference in New Issue
Block a user