feat: Add contact fields to hackathon and submission data; update registration service to handle string ID

This commit is contained in:
MythEclipse
2025-10-28 17:34:03 +07:00
parent 02421e9bc2
commit f7ca67d720
8 changed files with 42 additions and 23 deletions
@@ -338,9 +338,17 @@ async fn main() -> Result<(), Box<dyn Error>> {
project_name: Some(project_name.into()),
description: Some(description.into()),
repository_url,
upload_file_url: None,
demo_url,
slides_url,
technologies: Some(technologies),
contact_instagram: None,
contact_twitter: None,
contact_linkedin: None,
contact_facebook: None,
contact_youtube: None,
contact_tiktok: None,
contact_other: None,
submission_status: Some(submission_status),
submitted_at: Some(DateTime::parse_from_rfc3339(submitted_at)?.with_timezone(&Utc)),
is_deleted: false,
@@ -402,9 +402,17 @@ async fn main() -> Result<(), Box<dyn Error>> {
project_name: Some(project_name.into()),
description: Some(description.into()),
repository_url,
upload_file_url: None,
demo_url,
slides_url,
technologies: Some(technologies),
contact_instagram: None,
contact_twitter: None,
contact_linkedin: None,
contact_facebook: None,
contact_youtube: None,
contact_tiktok: None,
contact_other: None,
submission_status: Some(submission_status),
judge_feedback: None,
submitted_at: Some(DateTime::parse_from_rfc3339(submitted_at)?.with_timezone(&Utc)),