Skip to content

Commit

Permalink
print request
Browse files Browse the repository at this point in the history
  • Loading branch information
alldoami committed Feb 3, 2025
1 parent 054ddf8 commit 67f68f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func queryDatabricksForRecipient(email string) (bool, error) {
return false, fmt.Errorf("error creating request: %w", err)
}
req.Header.Set("Authorization", "Bearer "+databricksPAT)
fmt.Println("Request: ", req)
fmt.Printf("Request: %v\n", req)

client := &http.Client{}
resp, err := client.Do(req)
Expand All @@ -143,7 +143,7 @@ func queryDatabricksForRecipient(email string) (bool, error) {
// Parse the response
var recipientsResponse RecipientsResponse
if err := json.NewDecoder(resp.Body).Decode(&recipientsResponse); err != nil {
return false, fmt.Errorf("allison error parsing response: %w", err)
return false, fmt.Errorf("error parsing response: %w", err)
}

// Check if the email matches any recipient
Expand Down

0 comments on commit 67f68f8

Please sign in to comment.