Skip to content

Commit d14ea20

Browse files
authored
Merge pull request #113 from topcoder-platform/fix-nan-for-release-date
[HOTFIX] Fix nan for release date
2 parents 67a587f + a67d406 commit d14ea20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ workflows:
7474
branches:
7575
only:
7676
- dev
77+
- fix-nan-for-release-date
7778
- 'build-prod':
7879
context: org-global
7980
filters:
8081
branches:
8182
only:
82-
- master
83+
- master

src/api/admin/admin.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ export class AdminService {
332332
userId: +winning.winner_id,
333333
status: body.paymentStatus,
334334
amount: body.paymentAmount,
335-
releaseDate: formatDate(new Date(body.releaseDate)),
335+
releaseDate:
336+
body.releaseDate && formatDate(new Date(body.releaseDate)),
336337
};
337338

338339
await this.tcChallengesService.updateLegacyPayments(

0 commit comments

Comments
 (0)