Copy config files around to prevent overwriting

This commit is contained in:
claude Bot committed 2023-03-29 17:51:36 +01:00
1 parent 30fda2b0ee
commit a9a08e656f
4 files changed
+13 -14

No files matched your search

+3 -10
View File
@@ -409,16 +409,9 @@ WHERE
&self,
db_pool: impl Executor<'_, Database = Database>,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
sqlx::query!(
"
DELETE
FROM sounds
WHERE id = ?
",
self.id
)
.execute(db_pool)
.await?;
sqlx::query!("DELETE FROM sounds WHERE id = ?", self.id)
.execute(db_pool)
.await?;
Ok(())
}