mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2026-10-12 01:24:27 +08:00
Fix some type comparisons
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ pub fn preset(req: HttpRequest, body: String) -> Option<JsonValue> {
|
||||
fn check_gifts(user: &mut JsonValue) {
|
||||
let mut to_remove = array![];
|
||||
for (j, data) in user["home"]["gift_list"].members().enumerate() {
|
||||
if data["is_receive"] == "1" || data["expire_date_time"].as_u64().unwrap() < global::timestamp() {
|
||||
if data["is_receive"] == 1 || data["expire_date_time"].as_u64().unwrap() < global::timestamp() {
|
||||
to_remove.push(j).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user