Skip to content

Commit

Permalink
fix: Update market end date in ProductService
Browse files Browse the repository at this point in the history
  • Loading branch information
suk-6 committed Sep 24, 2024
1 parent a04b4cf commit d56c4ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/modules/product/dto/create.product.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ export class CreateProductDTO implements Partial<Prisma.ProductCreateInput> {
})
fundingEndDate: string;

@IsDateString()
@IsNotEmpty()
@ApiProperty({
example: '2024-09-15T00:00:00.000Z',
description: '마켓 종료일 (ISO 8601)',
})
marketEndDate: string;

@IsArray()
@IsString({ each: true })
@IsNotEmpty()
Expand Down
2 changes: 1 addition & 1 deletion src/modules/product/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class ProductService {
targetAmount: dto.targetAmount,
distributionPercent: Number(dto.distributionPercent),
fundingEndDate: DateTime.fromISO(dto.fundingEndDate).toJSDate(),
marketEndDate: DateTime.fromISO(dto.marketEndDate).toJSDate(),
marketEndDate: DateTime.now().toJSDate(),
user: {
connect: {
id: userId,
Expand Down

0 comments on commit d56c4ad

Please sign in to comment.