-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): update pg db + ddd version
- Loading branch information
1 parent
021f2a3
commit 8ce2e04
Showing
5 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
12 changes: 3 additions & 9 deletions
12
apps/api/contexts/identify-access/user/infras/persistence/pg/user.repository.pg.impl.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
import type { UserTable } from "@techmely/models"; | ||
import type { Kysely } from "kysely"; | ||
import { PgRepositoryBase } from "../../../../../../libs/db/repository-pg.base.ts"; | ||
import type { UserEntity } from "../../../domain/entities/user.entity.ts"; | ||
import type { IUserRepository } from "../../../domain/repo/user.repository.ts"; | ||
import type { UserMapper } from "../../mappers/user.mapper.ts"; | ||
import { PgRepositoryBase } from "#root/libs/db/repository-pg.base"; | ||
import type { UserEntity } from "../../../domain/entities/user.entity"; | ||
import type { IUserRepository } from "../../../domain/repo/user.repository"; | ||
|
||
export class UserPgRepository | ||
extends PgRepositoryBase<UserEntity, UserTable, { users: UserTable }> | ||
implements IUserRepository | ||
{ | ||
protected tableName = "users"; | ||
|
||
constructor(mapper: UserMapper, db: Kysely<any>) { | ||
super(mapper, db); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters