oops put front matter at the end

This commit is contained in:
Michael Zhang 2024-01-09 19:41:26 -06:00
parent e03236e1c7
commit 165f96c94a

View file

@ -70,8 +70,8 @@ pub async fn each_guild_update_events(
"scheduled_start_time": event.start_time.to_rfc3339(), "scheduled_start_time": event.start_time.to_rfc3339(),
"scheduled_end_time": event.end_time.to_rfc3339(), "scheduled_end_time": event.end_time.to_rfc3339(),
"description": format!("{}\n\n{}", "description": format!("{}\n\n{}",
event.description,
serde_json::to_string(&front_matter)?, serde_json::to_string(&front_matter)?,
event.description
), ),
}), }),
Some(&format!("created by ctftime bot")), Some(&format!("created by ctftime bot")),
@ -99,8 +99,8 @@ pub async fn each_guild_update_events(
"scheduled_start_time": event.start_time.to_rfc3339(), "scheduled_start_time": event.start_time.to_rfc3339(),
"scheduled_end_time": event.end_time.to_rfc3339(), "scheduled_end_time": event.end_time.to_rfc3339(),
"description": format!("{}\n\n{}", "description": format!("{}\n\n{}",
event.description,
serde_json::to_string(&front_matter)?, serde_json::to_string(&front_matter)?,
event.description
), ),
}), }),
Some(&format!("created by ctftime bot")), Some(&format!("created by ctftime bot")),