Allow using Multiple Boss App IDs for WUP Files

This commit is contained in:
BloxerHD 2026-02-25 18:38:32 +00:00
commit f6897c30ac
9 changed files with 52 additions and 48 deletions

View file

@ -37,7 +37,7 @@ pub async fn data(pool: &State<Pool>, boss_app_id: String, data_id: i64, file_ha
None => return Err(Status::NotFound),
};
if file_wup.hash != file_hash || file_wup.boss_app_id != boss_app_id { return Err(Status::NotFound); }
if file_wup.hash != file_hash || !file_wup.boss_app_ids.contains(&boss_app_id) { return Err(Status::NotFound); }
let file = sqlx::query_scalar!(
"SELECT data FROM files WHERE key = $1",