Skip to content

Commit aced750

Browse files
committed
Fix populate_tournament_path event
1 parent ef1c7b9 commit aced750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema/resources/event.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const populate_initial_computed = /* surrealql */ `
163163

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

0 commit comments

Comments
 (0)