mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 14:37:55 +00:00
convert project from microservices to rest apis
This commit is contained in:
@@ -1 +1 @@
|
||||
export * from './abstract.dto'
|
||||
export * from './abstract.dto';
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
} from 'typeorm';
|
||||
|
||||
import { AbstractDto } from '../dtos';
|
||||
import { Constructor } from '@app/common/util/types';
|
||||
import { Constructor } from '../../../../../common/src/util/types';
|
||||
|
||||
export abstract class AbstractEntity<
|
||||
T extends AbstractDto = AbstractDto,
|
||||
O = never
|
||||
O = never,
|
||||
> {
|
||||
@PrimaryGeneratedColumn('increment')
|
||||
@Exclude()
|
||||
@@ -38,7 +38,7 @@ export abstract class AbstractEntity<
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!dtoClass) {
|
||||
throw new Error(
|
||||
`You need to use @UseDto on class (${this.constructor.name}) be able to call toDto function`
|
||||
`You need to use @UseDto on class (${this.constructor.name}) be able to call toDto function`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user