wip
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { ITeamMembershipRepository } from '../../domain/repositories/ITeamMembershipRepository';
|
||||
import type { RejectTeamJoinRequestCommandDTO } from '../dto/TeamCommandAndQueryDTO';
|
||||
|
||||
export class RejectTeamJoinRequestUseCase {
|
||||
constructor(
|
||||
private readonly membershipRepository: ITeamMembershipRepository,
|
||||
) {}
|
||||
|
||||
async execute(command: RejectTeamJoinRequestCommandDTO): Promise<void> {
|
||||
const { requestId } = command;
|
||||
await this.membershipRepository.removeJoinRequest(requestId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user