convert project from microservices to rest apis

This commit is contained in:
faris Aljohari
2024-03-10 12:49:51 +03:00
parent b3179a5c1f
commit c5537b3230
72 changed files with 155 additions and 384 deletions
@@ -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`,
);
}