From 1c0146a02da3f42c46c69a543109a182f5a79ab7 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 1 Dec 2025 09:01:00 +0100 Subject: [PATCH] Fix SchematicNode.parentNode get --- CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt index 7117a4b0..96fd0901 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt @@ -314,7 +314,7 @@ class SchematicNode(id: EntityID) : IntEntity(id) { parentNodeId = value?.let { EntityID(it, SchematicNodeTable) } } val parentNode: SchematicNode? - get() = parent?.let { findById(it) } + get() = useDb { parent?.let { findById(it) } } val optionalParent: Optional get() = Optional.ofNullable(parent) var lastUpdate by SchematicNodeTable.lastUpdate.transform({ it.toInstant() }, { Timestamp.from(it) })