Skip to content

Commit

Permalink
fix type register date
Browse files Browse the repository at this point in the history
  • Loading branch information
quangquandev committed Dec 2, 2024
1 parent 647e8eb commit 623eb7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sequence/src/sequences.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class SequencesService implements ISequenceService {
const issuedAt = toISOStringWithTimezone(date || now)
const nowFiscalYear = this.getFiscalYear({
now: date || now,
registerTime: registerDate,
registerTime: registerDate ? new Date(registerDate) : undefined,
startMonth,
})
const sourceIp =
Expand Down Expand Up @@ -284,6 +284,7 @@ export class SequencesService implements ISequenceService {

const { now, startMonth = 4, registerTime } = options


const effectiveStartMonth = registerTime
? registerTime.getMonth() + 1
: startMonth ?? 4
Expand Down

0 comments on commit 623eb7b

Please sign in to comment.