Skip to content

Commit c097884

Browse files
committed
wrong enum vals
1 parent 10345c4 commit c097884

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/rbuilder-operator/src/clickhouse.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ impl ClickhouseIndexableData for BlockRow {
135135
#[derive(Debug, Clone, Copy, Serialize_repr, Deserialize_repr)]
136136
#[repr(i8)]
137137
pub enum OrderJournalOrderType {
138-
Tx = 1,
139-
Bundle = 2,
138+
Tx = 0,
139+
Bundle = 1,
140140
}
141141

142142
/// Enum matching ClickHouse `Enum8('Add' = 1, 'Remove' = 2)`.
143143
#[derive(Debug, Clone, Copy, Serialize_repr, Deserialize_repr)]
144144
#[repr(i8)]
145145
pub enum OrderJournalOperationType {
146-
Add = 1,
147-
Remove = 2,
146+
Add = 0,
147+
Remove = 1,
148148
}
149149

150150
/// Row for the `available_orders_journal` ClickHouse table.

0 commit comments

Comments
 (0)