chore: getTeamWithIDTE function removed

This commit is contained in:
mirarifhasan
2024-04-29 22:26:00 +06:00
parent 844eee0fa4
commit 293c93cc79
3 changed files with 12 additions and 21 deletions

View File

@@ -311,19 +311,6 @@ export class TeamService implements UserDataHandler, OnModuleInit {
}
}
getTeamWithIDTE(teamID: string): TE.TaskEither<'team/invalid_id', Team> {
return pipe(
() => this.getTeamWithID(teamID),
TE.fromTask,
TE.chain(
TE.fromPredicate(
(x): x is Team => !!x,
() => TEAM_INVALID_ID,
),
),
);
}
/**
* Filters out team members that we weren't able to match
* (also deletes the membership)