Fix version deps (#666)

This commit is contained in:
Geometrically authored and GitHub committed 2023-08-04 22:15:19 -07:00
1 parent d168209721
commit c370da2fef
2 files changed
+23 -23

No files matched your search

+3 -3
View File
@@ -49,8 +49,8 @@ impl DependencyBuilder {
} else if let Some(version_id) = self.version_id {
sqlx::query!(
"
SELECT mod_id FROM versions WHERE id = $1
",
SELECT mod_id FROM versions WHERE id = $1
",
version_id as VersionId,
)
.fetch_optional(&mut *transaction)
@@ -67,8 +67,8 @@ impl DependencyBuilder {
",
version_id as VersionId,
self.dependency_type,
project_id.map(|x| x.0),
self.version_id.map(|x| x.0),
project_id.map(|x| x.0),
self.file_name,
)
.execute(&mut *transaction)