Correctly use the mii server env variable
This commit is contained in:
parent
a281b56cc8
commit
2bfb3790df
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ use rocket::{get, State};
|
|||
use crate::Pool;
|
||||
use crate::xml::{Xml, YesNoVal};
|
||||
use crate::error::Errors;
|
||||
use crate::mii_util::get_mii_img_url;
|
||||
use crate::mii_util::MII_PROVIDER_SERVER_URL;
|
||||
use serde::Serialize;
|
||||
use gxhash::gxhash32;
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ pub async fn get_miis(
|
|||
.iter()
|
||||
.map(|(file, img_type)| {
|
||||
// dummy URL for now
|
||||
let url = format!("{}/mii/{}/{}", get_mii_img_url(row.pid, "png"), row.pid, file);
|
||||
let url = format!("{}/mii/{}/{}", &*MII_PROVIDER_SERVER_URL, row.pid, file);
|
||||
MiiImage {
|
||||
cached_url: url.clone(),
|
||||
id: mii_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue