Skip to content

Commit

Permalink
Fix import certs being duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Jul 5, 2024
1 parent e2c1c49 commit f7bf9ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vzdv-import/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async fn update_single(db: &Pool<Sqlite>, controller: &AdhController) -> Result<
.await?;

sqlx::query("DELETE FROM certification WHERE cid=$1")
.bind(controller.cid)
.execute(db)
.await?;
for certification in controller.certifications.values() {
Expand Down

0 comments on commit f7bf9ba

Please sign in to comment.