Return fast if entity is edge
This commit is contained in:
parent
b0bfdfff8e
commit
8e08ddcbca
@ -147,6 +147,7 @@ import org.thingsboard.server.service.telemetry.TelemetrySubscriptionService;
|
||||
import javax.mail.MessagingException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
@ -1086,6 +1087,9 @@ public abstract class BaseController {
|
||||
if (!edgesEnabled) {
|
||||
return null;
|
||||
}
|
||||
if (EntityType.EDGE.equals(entityId.getEntityType())) {
|
||||
return Collections.singletonList(new EdgeId(entityId.getId()));
|
||||
}
|
||||
List<EdgeId> result = new ArrayList<>();
|
||||
PageLink pageLink = new PageLink(DEFAULT_PAGE_SIZE);
|
||||
PageData<EdgeId> pageData;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user