Skip to content

Commit

Permalink
feat: groupValidStart
Browse files Browse the repository at this point in the history
Signed-off-by: Hristiyan <[email protected]>
  • Loading branch information
icoxxx committed Jan 15, 2025
1 parent a37e1bc commit 40b4b59
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
IsNotEmpty,
IsOptional,
IsString,
IsDate,
ValidateNested,
} from 'class-validator';
import { CreateTransactionGroupItemDto } from './create-transaction-group-item.dto';
Expand All @@ -22,10 +21,6 @@ export class CreateTransactionGroupDto {
@IsBoolean()
sequential: boolean;

@IsDate()
@Type(() => Date)
groupValidStart: Date;

@IsArray()
@IsNotEmpty()
@ValidateNested({ each: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('TransactionGroupsController', () => {
sequential: false,
groupItems: [],
createdAt: new Date(),
groupValidStart: new Date(),
};
});

Expand All @@ -73,7 +72,6 @@ describe('TransactionGroupsController', () => {
atomic: false,
sequential: false,
groupItems: [],
groupValidStart: new Date(),
};

transactionGroupsService.createTransactionGroup.mockResolvedValue(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ describe('TransactionGroupsService', () => {
},
},
],
groupValidStart: new Date(),
};

dataSource.manager.create.mockImplementation((entity, data) => ({ ...data }));
Expand Down
1 change: 0 additions & 1 deletion back-end/apps/chain/src/execute/execute.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ describe('ExecuteService', () => {
sequential: false,
createdAt: new Date(),
groupItems: [],
groupValidStart: new Date(),
};

for (let i = 0; i < 3; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ export class TransactionGroup {
@CreateDateColumn()
createdAt: Date;

@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
groupValidStart: Date;

@OneToMany(() => TransactionGroupItem, groupItem => groupItem.group)
groupItems: TransactionGroupItem[];
}

0 comments on commit 40b4b59

Please sign in to comment.