first commit

This commit is contained in:
2026-10-03 13:40:26 +02:00
parent 732a5b5a16
commit 566f415fa7
555 changed files with 62704 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs';
import { CommandResult, ack } from './command-result';
import { RemoveProjectMemberCommand } from './remove-project-member.command';
import { WriteAccess } from './write-access';
@CommandHandler(RemoveProjectMemberCommand)
export class RemoveProjectMemberCommandHandler
implements ICommandHandler<RemoveProjectMemberCommand>
{
constructor(private readonly access: WriteAccess) {}
async execute(command: RemoveProjectMemberCommand): Promise<CommandResult> {
const project = await this.access.project(command.projectId);
project.removeMember(command.actorId, command.userId);
await project.commitAndWait();
return ack(project);
}
}