mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 17:05:16 +00:00
Remove all movies
This commit is contained in:
@ -17,6 +17,12 @@ pub fn get_list_user(user_id: &UserID) -> ResultBoxError<Vec<Movie>> {
|
||||
.exec(db_to_movie)
|
||||
}
|
||||
|
||||
/// Get all movies
|
||||
pub fn get_all() -> ResultBoxError<Vec<Movie>> {
|
||||
database::QueryInfo::new(MOVIES_TABLE)
|
||||
.exec(db_to_movie)
|
||||
}
|
||||
|
||||
/// Get information about a single movie
|
||||
pub fn get_info(movie_id: u64) -> ResultBoxError<Movie> {
|
||||
database::QueryInfo::new(MOVIES_TABLE)
|
||||
|
Reference in New Issue
Block a user