Skip to content

Commit

Permalink
Fix populate_tournament_path event
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Apr 30, 2024
1 parent ef1c7b9 commit aced750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schema/resources/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const populate_initial_computed = /* surrealql */ `

const populate_tournament_path = /* surrealql */ `
DEFINE EVENT populate_tournament_path ON event WHEN $event = "CREATE" THEN {
UPDATE $value.id SET computed = array::append(($value.tournament.tournament_path ?? []), $value.id);
UPDATE $value.id SET tournament_path = array::append(($value.tournament.tournament_path ?? []), $value.id);
};
`;

Expand Down

0 comments on commit aced750

Please sign in to comment.