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:
parent
584ecbf49b
commit
409f5a8feb
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user