diff --git a/TypeScript/snowflakeIdv1.ts b/TypeScript/snowflakeIdv1.ts index b04e74a..ef1383c 100644 --- a/TypeScript/snowflakeIdv1.ts +++ b/TypeScript/snowflakeIdv1.ts @@ -115,7 +115,7 @@ export class snowflakeIdv1 { // 5.MaxSeqNumber if (options.maxSeqNumber == undefined || options.maxSeqNumber <= 0) - options.maxSeqNumber = (1 << options.SeqBitLength) - 1 + options.maxSeqNumber = (1 << options.seqBitLength) - 1 // 6.MinSeqNumber const MinSeqNumber = 5