Skip to content

Commit d3e7be4

Browse files
committed
set deactivated to false when updating
1 parent abe7cbc commit d3e7be4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ingestion/src/util/tsupdate.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ const TWISTED_TIMESERIES_QUERY: &str = "\
3737
WHERE met.param_id IS NOT NULL \
3838
AND timeseries.totime < timeseries.fromtime";
3939

40+
// Deactivated is information for the database
41+
// for a timeseries it is enough that the fromtime is closed
4042
const UPDATE_QUERY: &str = "\
4143
UPDATE public.timeseries SET \
4244
totime = $1, \
4345
fromtime = $2, \
44-
deactivated = true \
46+
deactivated = false \
4547
WHERE id = $3";
4648

4749
pub struct DeactivatedTimeseries {

0 commit comments

Comments
 (0)