Describe the bug
When using GraphQL changelogByEvent without authorization i get 200 OK.
To Reproduce
Steps to reproduce the behavior:
- Use query
query changelogByEvent($eventId: String!, $origin: String) {
changelogByEvent(eventId: $eventId origin: $origin) {
id
type
previousValue
newValue
origin
competitor {
id
externalId
firstname
lastname
}
createdAt
}
}
- Check the response
Expected behavior
Return 4xx unauthorized
Additional context
Response
{
"data": {
"changelogByEvent": null
},
"errors": [
{
"message": "Unexpected error.",
"path": [
"changelogByEvent"
],
"locations": [
{
"line": 2,
"column": 4
}
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
Describe the bug
When using GraphQL
changelogByEventwithout authorization i get 200 OK.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Return 4xx unauthorized
Additional context
Response
{ "data": { "changelogByEvent": null }, "errors": [ { "message": "Unexpected error.", "path": [ "changelogByEvent" ], "locations": [ { "line": 2, "column": 4 } ], "extensions": { "code": "INTERNAL_SERVER_ERROR" } } ] }