updated services
This commit is contained in:
parent
698df851dd
commit
e51f83aa8c
2 changed files with 7 additions and 0 deletions
|
|
@ -141,3 +141,4 @@ pub async fn admin_update_platforms(
|
||||||
|
|
||||||
Ok(Json(json!({ "platforms": saved })))
|
Ok(Json(json!({ "platforms": saved })))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue