Skip to content

Commit

Permalink
Call onTeamDeleted before deleting team from db
Browse files Browse the repository at this point in the history
It isn't possible to check the billing mode of a team marked as deleted.
  • Loading branch information
Andrew Farries committed Sep 28, 2022
1 parent 54b0724 commit 53123c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/src/workspace/gitpod-server-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2282,8 +2282,8 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
});
});

await this.teamDB.deleteTeam(teamId);
await this.onTeamDeleted(teamId);
await this.teamDB.deleteTeam(teamId);

return this.analytics.track({
userId: user.id,
Expand Down

0 comments on commit 53123c3

Please sign in to comment.