From 6e8e3003f8b0163437461e6b2fd2c16f13fe873e Mon Sep 17 00:00:00 2001 From: wangsijie Date: Sat, 7 Jan 2023 12:07:35 +0800 Subject: [PATCH] fix(core): fix typo (#2842) --- packages/core/src/routes/resource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/routes/resource.ts b/packages/core/src/routes/resource.ts index f6635f817..658b12782 100644 --- a/packages/core/src/routes/resource.ts +++ b/packages/core/src/routes/resource.ts @@ -24,7 +24,7 @@ import { import type { AuthedRouter } from './types.js'; const resourceId = buildIdGenerator(21); -const scoupeId = resourceId; +const scopeId = resourceId; export default function resourceRoutes(router: T) { router.get( @@ -145,7 +145,7 @@ export default function resourceRoutes(router: T) { ctx.body = await insertScope({ ...body, - id: scoupeId(), + id: scopeId(), resourceId, });