From 9270e027d1c042c41edae0287e79406f594e0f24 Mon Sep 17 00:00:00 2001 From: sabotack Date: Tue, 28 Nov 2023 12:57:05 +0100 Subject: [PATCH] Fix missing model id when calling update method --- src/api/ecdar_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/ecdar_api.rs b/src/api/ecdar_api.rs index d10567a..d8fe7c8 100644 --- a/src/api/ecdar_api.rs +++ b/src/api/ecdar_api.rs @@ -203,7 +203,7 @@ impl EcdarApi for ConcreteEcdarApi { }; let new_model = model::Model { - id: Default::default(), + id: model.id, name: match message.clone().name { Some(name) => name, None => model.name,