Skip to content

Commit 6e78957

Browse files
committed
fix
1 parent 790adfa commit 6e78957

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

catalyst-gateway/bin/src/db/event/common/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,3 @@ pub(crate) trait ConditionalStmt {
1313
table_field: &str,
1414
) -> std::fmt::Result;
1515
}
16-
17-
impl<T: ConditionalStmt> ConditionalStmt for Option<T> {
18-
fn conditional_stmt(
19-
&self,
20-
f: &mut std::fmt::Formatter<'_>,
21-
table_field: &str,
22-
) -> std::fmt::Result {
23-
if let Some(v) = self {
24-
v.conditional_stmt(f, table_field)?;
25-
}
26-
Ok(())
27-
}
28-
}

catalyst-gateway/bin/src/db/event/signed_docs/doc_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl ConditionalStmt for DocumentRef {
2828
}
2929
if let Some(ver) = &self.ver {
3030
write!(f, " AND ")?;
31-
ver.conditional_stmt(f, "(doc_ref->>'id')::uuid")?;
31+
ver.conditional_stmt(f, "(doc_ref->>'ver')::uuid")?;
3232
}
3333

3434
write!(f, ")")

0 commit comments

Comments
 (0)