mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-12 11:27:33 -05:00
I forgot to define user_id.....
Some checks failed
Build docker images / build (push) Has been cancelled
Some checks failed
Build docker images / build (push) Has been cancelled
This commit is contained in:
parent
4aa00fd3d8
commit
038a651202
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ pub const FRIEND_LIMIT: usize = 40;
|
|||
pub fn friend(req: HttpRequest, body: String) -> Option<JsonValue> {
|
||||
let key = global::get_login(req.headers(), &body);
|
||||
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
||||
let user_id = userdata::get_acc(&key)["user"]["id"].as_i64().unwrap();
|
||||
let friends = userdata::get_acc_friends(&key);
|
||||
|
||||
let mut rv = array![];
|
||||
|
|
Loading…
Add table
Reference in a new issue