mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
fix(db): resolve ambiguous foreign key relationships in join queries
This commit is contained in:
@@ -26,7 +26,7 @@ async def create_branch(
|
||||
) -> CvVersion | None:
|
||||
stmt = (
|
||||
select(CvVersion)
|
||||
.join(CvDocument)
|
||||
.join(CvVersion.document)
|
||||
.where(CvVersion.id == parent_version_id, CvDocument.owner_id == owner_id)
|
||||
.options(selectinload(CvVersion.patches))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user