3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { CreateUserHttpRequest } from './create-user.request.dto';
11
11
export class CreateUserHttpController {
12
12
constructor (
13
13
@Inject ( createUserSymbol )
14
- private readonly createUser : CreateUserService ,
14
+ private readonly service : CreateUserService ,
15
15
) { }
16
16
17
17
@Post ( routes . user . root )
@@ -30,7 +30,7 @@ export class CreateUserHttpController {
30
30
async create ( @Body ( ) body : CreateUserHttpRequest ) : Promise < IdResponse > {
31
31
const command = new CreateUserCommand ( body ) ;
32
32
33
- const id = await this . createUser . createUser ( command ) ;
33
+ const id = await this . service . createUser ( command ) ;
34
34
35
35
return new IdResponse ( id . value ) ;
36
36
}
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ import { CreateUserService } from './create-user.service';
9
9
export class CreateUserMessageController {
10
10
constructor (
11
11
@Inject ( createUserSymbol )
12
- private readonly createUser : CreateUserService ,
12
+ private readonly service : CreateUserService ,
13
13
) { }
14
14
15
15
@MessagePattern ( 'user.create' ) // <- Subscribe to a microservice message
16
16
async create ( message : CreateUserMessageRequest ) : Promise < IdResponse > {
17
17
const command = new CreateUserCommand ( message ) ;
18
18
19
- const id = await this . createUser . createUser ( command ) ;
19
+ const id = await this . service . createUser ( command ) ;
20
20
21
21
return new IdResponse ( id . value ) ;
22
22
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class FindUsersHttpController {
11
11
12
12
/* Since this is a simple query with no additional business
13
13
logic involved, it bypasses application's core completely
14
- and retrieves user directly from repository.
14
+ and retrieves users directly from a repository.
15
15
*/
16
16
@Get ( routes . user . root )
17
17
async findUsers (
0 commit comments