diff --git a/src/server/managers/permissions.ts b/src/server/managers/permissions.ts index 6a8ca6f4..04f3c4ea 100644 --- a/src/server/managers/permissions.ts +++ b/src/server/managers/permissions.ts @@ -5,7 +5,7 @@ import tp from 'trivialperms'; // Managers -import * as rolesMan from './roles'; +import * as rolesMan from './role'; // Models import { Account } from '../../common/interfaces/models/account'; diff --git a/src/server/managers/roles.ts b/src/server/managers/role.ts similarity index 100% rename from src/server/managers/roles.ts rename to src/server/managers/role.ts diff --git a/src/server/routes/roles.ts b/src/server/routes/roles.ts index fc5b4ad5..f6353136 100644 --- a/src/server/routes/roles.ts +++ b/src/server/routes/roles.ts @@ -7,7 +7,7 @@ import express from 'express'; import { errorHandler } from './utils'; // Managers -import * as rolesMan from '../managers/roles'; +import * as rolesMan from '../managers/role'; // Logger import logging from '@strata-js/util-logging'; diff --git a/src/server/utils/misc.ts b/src/server/utils/misc.ts index 48f911e1..bf39a54d 100644 --- a/src/server/utils/misc.ts +++ b/src/server/utils/misc.ts @@ -102,4 +102,16 @@ export function sortBy(key : string) : (a : Record, b : Record