running now
This commit is contained in:
parent
85cd083750
commit
c17bb05f0a
25 changed files with 156 additions and 114 deletions
|
|
@ -1,7 +1,8 @@
|
|||
import { Repository, DeepPartial } from "typeorm";
|
||||
import { AppDataSource } from "../data-source";
|
||||
import { Repository, DeepPartial, ObjectLiteral } from "typeorm";
|
||||
import { AppDataSource } from "../data-source.js";
|
||||
import { AbstractEntity } from "../entities/AbstractEntity.js";
|
||||
|
||||
export abstract class AbstractRepository<T> {
|
||||
export abstract class AbstractRepository<T extends AbstractEntity> {
|
||||
protected repo: Repository<T>;
|
||||
|
||||
constructor(entity: { new (): T }) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { AbstractRepository } from "./AbstractRepository";
|
||||
import { UserEntity } from "../entities/UserEntity";
|
||||
import { AbstractRepository } from "./AbstractRepository.js";
|
||||
import { UserEntity } from "../entities/UserEntity.js";
|
||||
|
||||
export class UserRepository extends AbstractRepository<UserEntity> {
|
||||
constructor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue