Add Schematic Revisions
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-07-01 21:39:08 +02:00
parent 9988774fb4
commit 4c98ce4aff
18 changed files with 165 additions and 69 deletions

View File

@@ -89,7 +89,7 @@ fun Route.configureSchematic() {
return@get
}
val data = NodeData.get(node) ?: run {
val data = NodeData.getLatest(node) ?: run {
call.respond(HttpStatusCode.InternalServerError)
return@get
}
@@ -166,8 +166,7 @@ fun Route.configureSchematic() {
} catch (_: Exception) {}
}
val data = NodeData(node.id, version)
data.saveFromStream(content.inputStream(), version)
NodeData.saveFromStream(node, content.inputStream(), version)
call.respond(ResponseSchematic(node))
} catch (e: Exception) {