feat(relation) perbaikan validasi relasi item
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
3f3da30c37
commit
afbf22cc03
|
@ -24,7 +24,7 @@ export class BatchDeleteItemCategoryManager extends BaseBatchDeleteManager<ItemC
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class BatchInactiveItemCategoryManager extends BaseBatchUpdateStatusManag
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class DeleteItemCategoryManager extends BaseDeleteManager<ItemCategoryEnt
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class InactiveItemCategoryManager extends BaseUpdateStatusManager<ItemCat
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class BatchDeleteItemManager extends BaseBatchDeleteManager<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'bundling_items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class BatchInactiveItemManager extends BaseBatchUpdateStatusManager<ItemE
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'bundling_items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class DeleteItemManager extends BaseDeleteManager<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'bundling_items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class InactiveItemManager extends BaseUpdateStatusManager<ItemEntity> {
|
||||||
}
|
}
|
||||||
|
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'bundling_items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
get entityTarget(): any {
|
get entityTarget(): any {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { UserModel } from 'src/modules/user-related/user/data/models/user.model'
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BatchDeleteTenantManager extends BaseBatchDeleteManager<UserEntity> {
|
export class BatchDeleteTenantManager extends BaseBatchDeleteManager<UserEntity> {
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
async beforeProcess(): Promise<void> {
|
async beforeProcess(): Promise<void> {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { UserModel } from 'src/modules/user-related/user/data/models/user.model'
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BatchInactiveTenantManager extends BaseBatchUpdateStatusManager<UserEntity> {
|
export class BatchInactiveTenantManager extends BaseBatchUpdateStatusManager<UserEntity> {
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
validateData(data: UserEntity): Promise<void> {
|
validateData(data: UserEntity): Promise<void> {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { UserEntity } from 'src/modules/user-related/user/domain/entities/user.e
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DeleteTenantManager extends BaseDeleteManager<UserEntity> {
|
export class DeleteTenantManager extends BaseDeleteManager<UserEntity> {
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
getResult(): string {
|
getResult(): string {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { UserEntity } from 'src/modules/user-related/user/domain/entities/user.e
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class InactiveTenantManager extends BaseUpdateStatusManager<UserEntity> {
|
export class InactiveTenantManager extends BaseUpdateStatusManager<UserEntity> {
|
||||||
get validateRelations(): validateRelations[] {
|
get validateRelations(): validateRelations[] {
|
||||||
return [];
|
return [{ relation: 'items' }];
|
||||||
}
|
}
|
||||||
|
|
||||||
getResult(): string {
|
getResult(): string {
|
||||||
|
|
Loading…
Reference in New Issue