feat: refactor the loading of the latest config so there's now two

functions, one for the server and one for the new admin web page
This commit is contained in:
Liordino Neto 2020-08-13 00:34:33 -03:00 committed by Josh Harvey
parent a0f6feeb78
commit d6b707ff7a
2 changed files with 17 additions and 8 deletions

View file

@ -258,7 +258,7 @@ const resolvers = {
serverLogs.getServerLogs(from, until, limit, offset),
transactions: (...[, { from, until, limit, offset }]) =>
transactions.batch(from, until, limit, offset),
config: () => settingsLoader.loadLatestConfig(),
config: () => settingsLoader.loadLatestConfigOrNone(),
accounts: () => settingsLoader.loadAccounts()
},
Mutation: {