Added Account Level to Profile
This commit is contained in:
parent
b8a4981ed9
commit
b1240d05e8
1 changed files with 4 additions and 2 deletions
|
|
@ -269,7 +269,8 @@ pub struct GetOwnProfileData{
|
|||
region: i32,
|
||||
tz_name: String,
|
||||
user_id: String,
|
||||
utc_offset: String
|
||||
utc_offset: String,
|
||||
account_level: i32,
|
||||
}
|
||||
|
||||
#[get("/v1/api/people/@me/profile")]
|
||||
|
|
@ -291,7 +292,7 @@ pub fn build_profile(user: User) -> GetOwnProfileData {
|
|||
let User {
|
||||
username,
|
||||
pid,
|
||||
// account_level,
|
||||
account_level,
|
||||
mii_data,
|
||||
gender,
|
||||
birthdate,
|
||||
|
|
@ -368,6 +369,7 @@ pub fn build_profile(user: User) -> GetOwnProfileData {
|
|||
off_device_flag: YesNoVal(off_device_allowed),
|
||||
region,
|
||||
utc_offset: timezone_offset,
|
||||
account_level,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue