diff --git a/lib/new-admin/graphql/schema.js b/lib/new-admin/graphql/schema.js index 44d098be..8d4825c0 100644 --- a/lib/new-admin/graphql/schema.js +++ b/lib/new-admin/graphql/schema.js @@ -330,11 +330,11 @@ const typeDefs = gql` machineAction(deviceId:ID!, action: MachineAction!, cashbox: Int, cassette1: Int, cassette2: Int, newName: String): Machine setCustomer(customerId: ID!, customerInput: CustomerInput): Customer saveConfig(config: JSONObject): JSONObject - resetConfig(schemaVersion: Int): JSONObject + # resetConfig(schemaVersion: Int): JSONObject createPairingTotem(name: String!): String saveAccounts(accounts: JSONObject): JSONObject - resetAccounts(schemaVersion: Int): JSONObject - migrateConfigAndAccounts: JSONObject + # resetAccounts(schemaVersion: Int): JSONObject + # migrateConfigAndAccounts: JSONObject # revokeToken(token: String!): UserToken deleteBlacklistRow(cryptoCode: String!, address: String!): Blacklist insertBlacklistRow(cryptoCode: String!, address: String!): Blacklist @@ -417,7 +417,7 @@ const resolvers = { machineAction: (...[, { deviceId, action, cashbox, cassette1, cassette2, newName }]) => machineAction({ deviceId, action, cashbox, cassette1, cassette2, newName }), createPairingTotem: (...[, { name }]) => pairing.totem(name), saveAccounts: (...[, { accounts }]) => settingsLoader.saveAccounts(accounts), - resetAccounts: (...[, { schemaVersion }]) => settingsLoader.resetAccounts(schemaVersion), + // resetAccounts: (...[, { schemaVersion }]) => settingsLoader.resetAccounts(schemaVersion), setCustomer: (root, { customerId, customerInput }, context, info) => { const token = context.req.cookies && context.req.cookies.token if (customerId === anonymous.uuid) return customers.getCustomerById(customerId) @@ -428,8 +428,8 @@ const resolvers = { notify() return it }), - resetConfig: (...[, { schemaVersion }]) => settingsLoader.resetConfig(schemaVersion), - migrateConfigAndAccounts: () => settingsLoader.migrate(), + // resetConfig: (...[, { schemaVersion }]) => settingsLoader.resetConfig(schemaVersion), + // migrateConfigAndAccounts: () => settingsLoader.migrate(), deleteBlacklistRow: (...[, { cryptoCode, address }]) => blacklist.deleteFromBlacklist(cryptoCode, address), insertBlacklistRow: (...[, { cryptoCode, address }]) => diff --git a/new-lamassu-admin/src/routing/routes.js b/new-lamassu-admin/src/routing/routes.js index 8d8285ac..8ad216d1 100644 --- a/new-lamassu-admin/src/routing/routes.js +++ b/new-lamassu-admin/src/routing/routes.js @@ -17,7 +17,7 @@ import AuthRegister from 'src/pages/AuthRegister' import Blacklist from 'src/pages/Blacklist' import Cashout from 'src/pages/Cashout' import Commissions from 'src/pages/Commissions' -import ConfigMigration from 'src/pages/ConfigMigration' +// import ConfigMigration from 'src/pages/ConfigMigration' import { Customers, CustomerProfile } from 'src/pages/Customers' import Dashboard from 'src/pages/Dashboard' import Funding from 'src/pages/Funding' @@ -320,7 +320,7 @@ const Routes = () => { - + {/* */} {flattened.map(({ route, component: Page, key }) => (