Skip to content

Commit 4b4d583

Browse files
King-witcherlutter
authored andcommitted
fix what seems to be a bad sql join
1 parent 82080b1 commit 4b4d583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

store/postgres/src/primary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,10 +1765,10 @@ impl<'a> Connection<'a> {
17651765

17661766
Ok(s::table
17671767
.inner_join(
1768-
v::table.on(v::subgraph
1768+
v::table.on(v::id
17691769
.nullable()
17701770
.eq(s::current_version)
1771-
.or(v::subgraph.nullable().eq(s::pending_version))),
1771+
.or(v::id.nullable().eq(s::pending_version))),
17721772
)
17731773
.filter(v::deployment.eq(site.deployment.as_str()))
17741774
.select(s::name)

0 commit comments

Comments
 (0)