Skip to content

Commit

Permalink
Use workload name instead of git directory in insert_workload function.
Browse files Browse the repository at this point in the history
Resolves #12
  • Loading branch information
slackspace-io committed Apr 21, 2024
1 parent 9cb7955 commit 64bd5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(()),
Expand Down

0 comments on commit 64bd5ce

Please sign in to comment.