Compare commits
No commits in common. "c41dc0853af570018c3034c73076e97935b91f3b" and "bfee85a9635ccf3d41f21c250ba4537936971034" have entirely different histories.
c41dc0853a
...
bfee85a963
@ -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