Merge branch 'feat/mii-compat' into 'main'
fix mii compatibility See merge request perditum/account-rs!5
This commit is contained in:
commit
27de6a00cf
2 changed files with 6 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ impl MiiData{
|
|||
let data: &FFLStoreData = try_from_bytes(data.get(0..size_of::<FFLStoreData>())?).ok()?;
|
||||
|
||||
let name = data.mii_data.core_data.name;
|
||||
let idx = name.iter().position(|v| *v == 0x0).unwrap_or(11);
|
||||
let idx = name.iter().position(|v| *v == 0x0).unwrap_or(10);
|
||||
|
||||
let name = &name[0..idx];
|
||||
|
||||
|
|
|
|||
|
|
@ -80,4 +80,9 @@ pub async fn mapped_ids(pool: &State<Pool>, input_type: String, output_type: Str
|
|||
mapped_id: outputs
|
||||
}
|
||||
))
|
||||
}
|
||||
|
||||
#[get("/v1/api/admin/time")]
|
||||
pub fn get_time() {
|
||||
// stubbed, it only needs the header.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue