Compare commits
No commits in common. "74edcfa11946b48a6743cdd8a7f12ef9b9ae077e" and "f55f45d960a071fc39e2cb1b5e28a54756db9085" have entirely different histories.
74edcfa119
...
f55f45d960
@ -181,7 +181,6 @@ 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
|
||||
|
@ -161,11 +161,7 @@ async fn blogpost_unpublished(
|
||||
config: &State<Config>,
|
||||
) -> String {
|
||||
if blogpost.pw == &config.wordpress_key {
|
||||
Notification::delete_by_link(
|
||||
&db,
|
||||
&urlencoding::decode(blogpost.article_url).expect("UTF-8"),
|
||||
)
|
||||
.await;
|
||||
Notification::delete_by_link(&db, blogpost.article_url).await;
|
||||
"ACK".into()
|
||||
} else {
|
||||
"WRONG pw".into()
|
||||
|
Loading…
Reference in New Issue
Block a user