updated services

This commit is contained in:
liyunze 2026-11-05 22:51:51 +08:00
parent 698df851dd
commit e51f83aa8c
2 changed files with 7 additions and 0 deletions

View file

@ -141,3 +141,4 @@ pub async fn admin_update_platforms(
Ok(Json(json!({ "platforms": saved }))) Ok(Json(json!({ "platforms": saved })))
} }

View file

@ -27,6 +27,7 @@ pub fn init(conn: &Connection) -> rusqlite::Result<()> {
followers INTEGER NOT NULL DEFAULT 0, followers INTEGER NOT NULL DEFAULT 0,
updated_at INTEGER NOT NULL updated_at INTEGER NOT NULL
); );
"#, "#,
)?; )?;
seed(conn) seed(conn)
@ -40,6 +41,10 @@ fn seed(conn: &Connection) -> rusqlite::Result<()> {
("about", "I build games and stream the process on Twitch."), ("about", "I build games and stream the process on Twitch."),
("email", "hello@rython.dev"), ("email", "hello@rython.dev"),
("profile_image_url", "/images/pfp_new_medium.webp"), ("profile_image_url", "/images/pfp_new_medium.webp"),
(
"services",
"Sponsored content\nProduct reviews\nLivestream integrations\nSocial media campaigns\nBrand partnerships\nEvent appearances",
),
]; ];
for (key, value) in content_defaults { for (key, value) in content_defaults {
@ -138,3 +143,4 @@ pub fn upsert_platforms(conn: &Connection, platforms: &[PlatformInput]) -> rusql
Ok(()) Ok(())
} }