maybe unpublishing a post works now?
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2024-08-19 09:55:01 +02:00
parent bfee85a963
commit cc7bd3a416
2 changed files with 6 additions and 1 deletions

View File

@ -181,6 +181,7 @@ ORDER BY read_at DESC, created_at DESC;
}
pub(crate) async fn delete_by_link(db: &sqlx::Pool<Sqlite>, link: &str) {
let link = Some(link);
sqlx::query!("DELETE FROM notification WHERE link=?", link)
.execute(db)
.await