Skip to content

Commit

Permalink
fix players
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed May 16, 2024
1 parent 0d42394 commit 9fbb620
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/(console)/account/registrations/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function useData({
[RichAttends[], { count: number }[], (User | Team)[]]
>(
/* surql */ `
SELECT *, out.*, out.start, in.*, players.* FROM $auth->attends
SELECT *, out.*, out.start, in.*, (SELECT * FROM $parent.players) as players FROM $auth->attends
ORDER BY out.start
START $start
LIMIT $limit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function useData({
/* surql */ `
LET $event = <record<event>> $event;
SELECT *, out.*, out.start, in.*, in.name, players.* FROM attends
SELECT *, out.*, out.start, in.*, in.name, (SELECT * FROM $parent.players) as players FROM attends
WHERE $event IN tournament_path
ORDER BY out.start, in.name
START $start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function useData({
/* surql */ `
LET $team = type::thing('team', $slug);
SELECT *, out.*, out.start, in.*, players.* FROM $team->attends
SELECT *, out.*, out.start, in.*, (SELECT * FROM $parent.players) as players FROM $team->attends
ORDER BY out.start
START $start
LIMIT $limit;
Expand Down

0 comments on commit 9fbb620

Please sign in to comment.