Skip to content

Commit 4ee8188

Browse files
committed
pass domaindata to service
1 parent 7fe0737 commit 4ee8188

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Projects/BooksLibrary/src/api/controllers/user.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class UserController {
3838

3939
const domainData: UserDomainModel = await UserValidator.create(request, response);
4040

41-
const apiResponse = await this._service.create();
41+
const apiResponse = await this._service.create(domainData);
4242

4343
ResponseHandler.success(
4444
request,

Projects/BooksLibrary/src/services/user.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { UserDomainModel } from 'domain.types/user/user.domain.model';
12
import { injectable } from 'tsyringe';
23

34
@injectable()
45
export class UserService {
5-
create = async () => {
6+
create = async (userDetails: UserDomainModel) => {
67
const servicceResponse = {
78
name: 'akash jadhav',
89
designation: 'software dev',

0 commit comments

Comments
 (0)