0
Fork 0
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:
wangsijie 2023-01-07 12:07:35 +08:00 committed by GitHub
parent fff081f1be
commit 6e8e3003f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});