mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 08:55:16 +00:00
Add movies to export
This commit is contained in:
@ -6,7 +6,7 @@ use crate::data::error::{ExecError, ResultBoxError};
|
||||
use crate::data::new_account::NewAccount;
|
||||
use crate::data::user::UserID;
|
||||
use crate::data::user_token::UserAccessToken;
|
||||
use crate::helpers::{comments_helper, database, likes_helper, posts_helper, survey_helper, user_helper};
|
||||
use crate::helpers::{comments_helper, database, likes_helper, posts_helper, survey_helper, user_helper, movies_helper};
|
||||
use crate::helpers::database::{DeleteQuery, InsertQuery, QueryInfo};
|
||||
use crate::utils::crypt_utils::{crypt_pass, rand_str};
|
||||
use crate::utils::date_utils::{mysql_date, time};
|
||||
@ -199,6 +199,9 @@ pub fn export(user_id: &UserID) -> ResultBoxError<AccountExport> {
|
||||
comments: comments_helper::export_all_user(user_id)?,
|
||||
likes: likes_helper::export_all_user(user_id)?,
|
||||
survey_responses: survey_helper::export_all_user_responses(user_id)?,
|
||||
movies: movies_helper::get_list_user(user_id)?,
|
||||
|
||||
//TODO : add other fields
|
||||
};
|
||||
|
||||
Ok(data)
|
||||
|
Reference in New Issue
Block a user