Skip to content

Commit

Permalink
chore: passing projectId to project() query instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
slaveeks committed Jan 16, 2025
1 parent 278bd08 commit b6597e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/api/events/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { USER_FRAGMENT, EVENT_BACKTRACE } from '../fragments';
*/
export const QUERY_EVENT = `
query Event($projectId: ID!, $eventId: ID!, $repetitionId: ID) {
project(id: $projectId) {
project(projectId: $projectId) {
event(id: $eventId) {
id
catcherType
Expand Down Expand Up @@ -85,7 +85,7 @@ export const QUERY_RECENT_PROJECT_EVENTS = `
$sort: EventsSortOrder,
$filters: EventsFiltersInput
) {
project(id: $projectId) {
project(projectId: $projectId) {
recentEvents(limit: 15, skip: $skip, sort: $sort, filters: $filters) {
events {
id
Expand Down Expand Up @@ -138,7 +138,7 @@ export const QUERY_LATEST_REPETITIONS = `
$skip: Int,
$limit: Int
) {
project(id: $projectId) {
project(projectId: $projectId) {
event(id: $eventId) {
repetitions(skip: $skip, limit: $limit) {
id
Expand Down Expand Up @@ -181,7 +181,7 @@ export const QUERY_CHART_DATA = `
$days: Int!
$timezoneOffset: Int!
) {
project(id: $projectId) {
project(projectId: $projectId) {
event(id: $eventId) {
chartData(
days: $days,
Expand Down
2 changes: 1 addition & 1 deletion src/api/projects/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const QUERY_CHART_DATA = `
$days: Int!
$timezoneOffset: Int!
) {
project(id: $projectId) {
project(projectId: $projectId) {
chartData(days: $days, timezoneOffset: $timezoneOffset) {
timestamp
count
Expand Down

0 comments on commit b6597e8

Please sign in to comment.