Skip to content

Commit

Permalink
Merge pull request #149 from jbrunton/refactor-usecases-directory
Browse files Browse the repository at this point in the history
refactor: usecases directory
  • Loading branch information
jbrunton authored Aug 24, 2024
2 parents 161ab9e + ef0db0a commit 9eff29c
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions services/api/src/app/messages/command.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { LoremCommandUseCase } from '@usecases/commands/lorem';
import { ParseCommandUseCase } from '@usecases/commands/parse';
import { ChangeRoomJoinPolicyUseCase } from '@usecases/rooms/change-room-join-policy';
import { P, match } from 'ts-pattern';
import { InviteUseCase } from '@usecases/rooms/invite';
import { LeaveRoomUseCase } from '@usecases/rooms/leave';
import { InviteUseCase } from '@usecases/memberships/invite';
import { LeaveRoomUseCase } from '@usecases/memberships/leave';
import { AboutRoomUseCase } from '@usecases/rooms/about-room';
import { ApproveRequestUseCase } from '@usecases/rooms/approve-request';
import { ApproveRequestUseCase } from '@usecases/memberships/approve-request';

@Injectable()
export class CommandService {
Expand Down
6 changes: 3 additions & 3 deletions services/api/src/app/messages/messages.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import { LoremCommandUseCase, LoremGenerator } from '@usecases/commands/lorem';
import { FakerLoremGenerator } from './faker.lorem.generator';
import { DispatcherModule } from '../dispatcher/dispatcher.module';
import { ChangeRoomJoinPolicyUseCase } from '@usecases/rooms/change-room-join-policy';
import { InviteUseCase } from '@usecases/rooms/invite';
import { LeaveRoomUseCase } from '@usecases/rooms/leave';
import { InviteUseCase } from '@usecases/memberships/invite';
import { LeaveRoomUseCase } from '@usecases/memberships/leave';
import { AboutRoomUseCase } from '@usecases/rooms/about-room';
import { ApproveRequestUseCase } from '@usecases/rooms/approve-request';
import { ApproveRequestUseCase } from '@usecases/memberships/approve-request';

@Module({
imports: [AuthModule, DispatcherModule],
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/app/rooms/rooms.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ConsoleLogger, Controller, Get, Param, Post } from '@nestjs/common';
import { User } from '@entities/users';
import { CreateRoomUseCase } from '@usecases/rooms/create';
import { GetRoomUseCase } from '@usecases/rooms/get';
import { JoinRoomUseCase } from '@usecases/rooms/join';
import { JoinRoomUseCase } from '@usecases/memberships/join';

@Auth()
@Controller('rooms')
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/app/rooms/rooms.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AuthModule } from '@app/auth/auth.module';
import { Module } from '@nestjs/common';
import { CreateRoomUseCase } from '@usecases/rooms/create';
import { GetRoomUseCase } from '@usecases/rooms/get';
import { JoinRoomUseCase } from '@usecases/rooms/join';
import { JoinRoomUseCase } from '@usecases/memberships/join';
import { RoomsController } from './rooms.controller';
import { MessagesModule } from '@app/messages/messages.module';
import { DispatcherModule } from '@app/dispatcher/dispatcher.module';
Expand Down

0 comments on commit 9eff29c

Please sign in to comment.