From aeec09a32a6948d77caa6adf698fd7f43145fd55 Mon Sep 17 00:00:00 2001 From: hhk-png Date: Wed, 20 Sep 2023 19:06:32 +0800 Subject: [PATCH] chore: change the incorrect property name --- TypeScript/snowflakeIdv1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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