Copy config files around to prevent overwriting

This commit is contained in:
jude
2023-03-26 00:54:48 +00:00
parent 30fda2b0ee
commit a9a08e656f
4 changed files with 13 additions and 14 deletions
+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(())
}