mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(core): fix typo (#2842)
This commit is contained in:
parent
fff081f1be
commit
6e8e3003f8
1 changed files with 2 additions and 2 deletions
|
@ -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<T extends AuthedRouter>(router: T) {
|
||||
router.get(
|
||||
|
@ -145,7 +145,7 @@ export default function resourceRoutes<T extends AuthedRouter>(router: T) {
|
|||
|
||||
ctx.body = await insertScope({
|
||||
...body,
|
||||
id: scoupeId(),
|
||||
id: scopeId(),
|
||||
resourceId,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue