mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 19:26:54 +08:00
feat: #920 migrate id to nanoid
This commit is contained in:
@@ -9,8 +9,8 @@ export const BUILTIN_MASK_ID = 100000;
|
||||
|
||||
export const BUILTIN_MASK_STORE = {
|
||||
buildinId: BUILTIN_MASK_ID,
|
||||
masks: {} as Record<number, BuiltinMask>,
|
||||
get(id?: number) {
|
||||
masks: {} as Record<string, BuiltinMask>,
|
||||
get(id?: string) {
|
||||
if (!id) return undefined;
|
||||
return this.masks[id] as Mask | undefined;
|
||||
},
|
||||
|
Reference in New Issue
Block a user