Commit b7a0ecd
fix(api): Add UnauthenticatedError to upload token error union
The RegenerateRepositoryUploadTokenError union was missing
UnauthenticatedError, causing a GraphQL runtime error when
unauthenticated requests hit the resolver. Add the missing type
to match the sibling RegenerateRepositoryTokenError union and
add a test for the unauthenticated case.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4bf8d00 commit b7a0ecd
File tree
2 files changed
+11
-1
lines changed- apps/codecov-api/graphql_api
- tests/mutation
- types/mutation/regenerate_repository_upload_token
2 files changed
+11
-1
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments