Skip to content

Commit 8ed4e02

Browse files
committed
feat: soggy
1 parent b5c6975 commit 8ed4e02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/database/repository/mods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub async fn get_logo(id: &str, conn: &mut PgConnection) -> Result<Option<Vec<u8
3737
INNER JOIN mod_versions mv ON mv.mod_id = m.id
3838
INNER JOIN mod_version_statuses mvs ON mvs.mod_version_id = mv.id
3939
WHERE m.id = $1",
40-
id
40+
"capeling.soggy-mod"
4141
)
4242
.fetch_optional(&mut *conn)
4343
.await

src/endpoints/mods.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub async fn index(
7272
let mut result = Mod::get_index(&mut pool, query.0).await?;
7373
for i in &mut result.data {
7474
for j in &mut i.versions {
75+
j.name = "Soggy Mod".into();
7576
j.modify_metadata(data.app_url(), false);
7677
}
7778
}
@@ -236,7 +237,7 @@ pub async fn get_logo(
236237
.acquire()
237238
.await
238239
.or(Err(ApiError::DbAcquireError))?;
239-
let image = mods::get_logo(&path.into_inner(), &mut pool).await?;
240+
let image: Option<Vec<u8>> = mods::get_logo(&path.into_inner(), &mut pool).await?;
240241

241242
match image {
242243
Some(i) => {

0 commit comments

Comments
 (0)