mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 15:29:21 +00:00
Fix issue
This commit is contained in:
parent
1af26f6d84
commit
6bad417645
@ -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()?
|
||||||
|
Loading…
Reference in New Issue
Block a user