From 64bd5cef0f552a6f4d07588c4154f5d43410de6c Mon Sep 17 00:00:00 2001 From: Jacob Morgan Date: Sun, 21 Apr 2024 08:32:52 +0200 Subject: [PATCH] Use workload name instead of git directory in insert_workload function. Resolves #12 --- src/database/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/client.rs b/src/database/client.rs index 1f75ad7..c2a8c61 100644 --- a/src/database/client.rs +++ b/src/database/client.rs @@ -150,7 +150,7 @@ pub fn insert_workload(workload: &Workload, scan_id: i32) -> Result<()> { &workload.latest_version, &workload.last_scanned, &scan_id.to_string(), - workload.git_directory.as_ref().map(String::as_str).unwrap_or_default(), + &workload.name, ], ) { Ok(_) => Ok(()),