From d23af0482b26b6d48e56cd5dbfa2ff2e5f5b5749 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Wed, 22 Dec 2021 18:32:44 +0300 Subject: [PATCH] TODOS and type field --- server/src/services/analytic_unit_service.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/services/analytic_unit_service.rs b/server/src/services/analytic_unit_service.rs index 786e38f..9e8caae 100644 --- a/server/src/services/analytic_unit_service.rs +++ b/server/src/services/analytic_unit_service.rs @@ -21,6 +21,8 @@ impl AnalyticUnitService { id TEXT PRIMARY KEY, last_detection INTEGER active BOOLEAN + type INTEGER + config TEXT )", [], )?; @@ -70,6 +72,7 @@ impl AnalyticUnitService { } pub fn get_active() { - + // TODO: query by id + // TODO: deserialisation of analytic_unit by config and it's type } } \ No newline at end of file