Skip to content

Commit

Permalink
fix(backend/shared): code building problems bb-13
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKorop committed Aug 21, 2024
1 parent e2507ab commit 116c122
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/libs/modules/http/http.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { HTTPCode } from "./libs/enums/enums.js";
export { HTTPCode, HTTPHeader } from "./libs/enums/enums.js";
export {
AuthError,
HTTPError,
Expand Down
1 change: 0 additions & 1 deletion apps/backend/src/modules/users/libs/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export {
type UserDto,
type UserGetAllResponseDto,
type UserGetOneResponseDto,
type UserSignInRequestDto,
type UserSignInResponseDto,
type UserSignUpRequestDto,
Expand Down
3 changes: 1 addition & 2 deletions apps/backend/src/modules/users/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { type UserRepository } from "~/modules/users/user.repository.js";
import {
type UserDto,
type UserGetAllResponseDto,
type UserGetOneResponseDto,
type UserSignUpRequestDto,
} from "./libs/types/types.js";

Expand Down Expand Up @@ -38,7 +37,7 @@ class UserService implements Service {
return Promise.resolve(true);
}

public async find(id: number): Promise<null | UserGetOneResponseDto> {
public async find(id: number): Promise<null | UserEntity> {
return await this.userRepository.find(id);
}

Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export {
type UserDto,
type UserGetAllItemResponseDto,
type UserGetAllResponseDto,
type UserGetOneResponseDto,
UsersApiPath,
type UserSignInRequestDto,
type UserSignInResponseDto,
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/modules/users/libs/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export { type UserDto } from "./user-dto.type.js";
export { type UserGetAllItemResponseDto } from "./user-get-all-item-response-dto.type.js";
export { type UserGetAllResponseDto } from "./user-get-all-response-dto.type.js";
export { type UserGetOneResponseDto } from "./user-get-one-response-dto.type.js";
export { type UserSignInRequestDto } from "./user-sign-in-request-dto.type.js";
export { type UserSignInResponseDto } from "./user-sign-in-response-dto.type.js";
export { type UserSignUpRequestDto } from "./user-sign-up-request-dto.type.js";
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/shared/src/modules/users/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export {
type UserDto,
type UserGetAllItemResponseDto,
type UserGetAllResponseDto,
type UserGetOneResponseDto,
type UserSignInRequestDto,
type UserSignInResponseDto,
type UserSignUpRequestDto,
Expand Down

0 comments on commit 116c122

Please sign in to comment.