Skip to content

Commit

Permalink
Fix mapping in UC, update review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreuzkam-cap committed Jan 12, 2024
1 parent 4bfd818 commit 452d928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/server/src/modules/account/review-comments.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Review Comments 14.7.23

- Remove lookup service, move to idm and db
- Adjust Account DO
- Move Account Entity

- write an md file or flow diagram describing how things work
- in what layer do the services belong?

- naming of DO vs Entity (DO is the leading, "Account", entity is just the datalayer representation "AccountEntity")

- new decisions for loggables


Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/modules/account/uc/account.uc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class AccountUc {
const account = await this.accountService.findByUserId(query.value);
if (account) {
// HINT: skip and limit should be from the query
return new ResolvedSearchListAccountDto([AccountResponseMapper.mapToAccountResponse(account)], 1, 0, 1);
return new ResolvedSearchListAccountDto([AccountUcMapper.mapToResolvedAccountDto(account)], 1, 0, 1);
}
// HINT: skip and limit should be from the query
return new ResolvedSearchListAccountDto([], 0, 0, 0);
Expand Down

0 comments on commit 452d928

Please sign in to comment.