Skip to content

Commit

Permalink
fix: completing training deleting all your old training
Browse files Browse the repository at this point in the history
:yikes:
  • Loading branch information
Gobot1234 committed Apr 14, 2024
1 parent 86af131 commit 5c33fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/anvil/src/training/training.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class TrainingService {
"distinct",
e.for(user.training, (t) => {
// filter out the previous training if they had it
return e.op(training, "if", e.op(t, "!=", training), "else", e.cast(e.training.Training, e.set()));
return e.op(t, "if", e.op(t, "!=", training), "else", e.cast(e.training.Training, e.set()));
}),
),
"union",
Expand Down

0 comments on commit 5c33fc5

Please sign in to comment.