Skip to content

Commit 9dbc547

Browse files
fix: pass auth to get_events in post_slack endpoint
post_slack called get_events without forwarding the auth parameter, causing check_auth inside get_events to receive a raw Depends() descriptor instead of the authenticated User, resulting in 401. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 45d1a37 commit 9dbc547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def post_slack(
465465

466466
check_auth(auth)
467467

468-
get_events(location=location, exclusions=exclusions)
468+
get_events(auth=auth, location=location, exclusions=exclusions)
469469

470470
# open json file and convert to list of strings
471471
msg = fmt_json(json_fn)

0 commit comments

Comments
 (0)