1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-23 05:49:22 +00:00

Remove the post from the database

This commit is contained in:
Pierre HUBERT 2020-07-09 11:03:06 +02:00
parent 584ecbf49b
commit 409f5a8feb

View File

@ -425,6 +425,11 @@ pub fn delete(p: &Post) -> ResultBoxError {
_ => { /* Nothing to be done */ } _ => { /* Nothing to be done */ }
} }
// Remove the post from the database
database::DeleteQuery::new(POSTS_TABLE)
.cond_u64("ID", p.id)
.exec()?;
Ok(()) Ok(())
} }