Updating operations module
This commit is contained in:
1 parent
b11529a93a
commit
76aa83387b
3 files changed
+7
-4
No files matched your search
@@ -68,7 +68,8 @@ const operationsMenus = {
|
||||
icon: Home,
|
||||
authenticated: true,
|
||||
submenus: [
|
||||
{ title: 'Your clones', to: '/operations/browse', icon: ImportContacts },
|
||||
{ title: 'Active clones', to: '/operations/browse', icon: ImportContacts },
|
||||
{ title: 'History', to: '/operations/history', icon: LibraryAdd },
|
||||
{ title: 'Clone a bot', to: '/operations/add', icon: AddCircleOutline },
|
||||
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/OperationsModule/issues/new', icon: BugReport, externalLink: true }
|
||||
]
|
||||
@@ -77,6 +78,7 @@ const operationsMenus = {
|
||||
const financialBeingsMenus = {
|
||||
title: 'FBs',
|
||||
to: '/financial-beings',
|
||||
icon: Home,
|
||||
authenticated: false,
|
||||
submenus: [
|
||||
{ title: 'Directory', to: '/financial-beings', icon: ImportContacts }
|
||||
@@ -87,7 +89,7 @@ const allMenus = [
|
||||
usersMenus,
|
||||
teamsMenus,
|
||||
eventsMenus,
|
||||
financialBeingsMenus,
|
||||
// financialBeingsMenus,
|
||||
keyvaultMenus,
|
||||
operationsMenus
|
||||
]
|
||||
|
||||
@@ -45,10 +45,10 @@ export const createRemoteSchema = async (uri, preshared_key) => {
|
||||
export const createTransformedRemoteSchema = async (prefix, uri, preshared_key) => {
|
||||
var schema
|
||||
try {
|
||||
logger.info(`About to create ${prefix} schema at ${uri}`)
|
||||
logger.info('About to create %s schema at %s.', prefix, uri)
|
||||
schema = await createRemoteSchema(uri, preshared_key)
|
||||
} catch (error) {
|
||||
logger.error(`An error occured while fetching ${prefix}, ${uri} schema. Details: ${error}`)
|
||||
logger.error('An error occured while fetching %s, %s schema. Details: %j', prefix, uri, error)
|
||||
return false
|
||||
}
|
||||
const transformedSchema = transformSchema(schema, [
|
||||
|
||||
@@ -26,6 +26,7 @@ const logger = createLogger({
|
||||
level: 'info',
|
||||
format: format.combine(
|
||||
format.colorize(),
|
||||
format.splat(),
|
||||
format.timestamp({ format: 'YY/MM/DD HH:mm' }),
|
||||
format.printf(
|
||||
info => `${info.timestamp} - ${info.level}: ${JSON.parse(JSON.stringify(inspect(info.message)))}`
|
||||
|
||||
Reference in new issue
Block a user