From b58ef760e3379c42a94a0192286cff64022605ae Mon Sep 17 00:00:00 2001 From: stefanogoldoni Date: Sun, 2 May 2021 23:01:10 +0200 Subject: [PATCH] corretta serializzazione di type --- code/backend/nest_backend/database/tables/Condition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/backend/nest_backend/database/tables/Condition.py b/code/backend/nest_backend/database/tables/Condition.py index 2124534..e4da66f 100644 --- a/code/backend/nest_backend/database/tables/Condition.py +++ b/code/backend/nest_backend/database/tables/Condition.py @@ -19,6 +19,6 @@ class Condition(Base.Model): def to_json(self): return { "id": self.id, - "type": self.type, + "type": self.type.value, "content": self.content, }