1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-30 01:06:27 +00:00

Fix issue

This commit is contained in:
Pierre HUBERT 2020-07-08 20:20:30 +02:00
parent 1af26f6d84
commit 6bad417645

View File

@ -15,7 +15,7 @@ pub fn create(survey: &NewSurvey) -> ResultBoxError {
let survey_id = database::InsertQuery::new(SURVEY_INFO_TABLE) let survey_id = database::InsertQuery::new(SURVEY_INFO_TABLE)
.add_user_id("ID_utilisateurs", &survey.user_id) .add_user_id("ID_utilisateurs", &survey.user_id)
.add_u64("ID_texte", survey.post_id) .add_u64("ID_texte", survey.post_id)
.add_u64("date_creation", time()) .add_str("date_creation", &mysql_date())
.add_str("question", survey.question.as_str()) .add_str("question", survey.question.as_str())
.add_legacy_bool("allow_new_choices", survey.allow_new_choices) .add_legacy_bool("allow_new_choices", survey.allow_new_choices)
.insert()? .insert()?