Allow using Multiple Boss App IDs for WUP Files
This commit is contained in:
parent
3b6c3b92ba
commit
f6897c30ac
9 changed files with 52 additions and 48 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue