Skip to content

Commit

Permalink
fix stupid number bug
Browse files Browse the repository at this point in the history
  • Loading branch information
belst committed Dec 20, 2021
1 parent 438a681 commit 9b64cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ async fn webhook(body: web::Json<Config>, db: web::Data<PgPool>) -> impl Respond

let creds = creds.unwrap();

if creds.len() != 2 || creds[1] != "app" {
return HttpResponse::Ok().json(Response::denied("Invalid URL".to_string()));
if creds.len() != 2 || creds[0] != "app" {
return HttpResponse::Ok().json(Response::denied("Unknown Application".to_string()));
}

let token = creds[1];
Expand Down

0 comments on commit 9b64cc9

Please sign in to comment.