Chore: post-rebase fixes

This commit is contained in:
csrapr 2021-02-05 00:05:50 +00:00 committed by Josh Harvey
parent c0106592eb
commit ef60b15d82
29 changed files with 224 additions and 470 deletions

View file

@ -248,12 +248,6 @@ const typeDefs = gql`
rate: Float
}
type Rate {
code: String
name: String
rate: Float
}
type Notification {
id: ID!
type: String
@ -297,6 +291,7 @@ const typeDefs = gql`
cryptoRates: JSONObject
fiatRates: [Rate]
notifications: [Notification]
alerts: [Notification]
hasUnreadNotifications: Boolean
}
@ -396,7 +391,8 @@ const resolvers = {
}),
fiatRates: () => forex.getFiatRates(),
notifications: () => notifierQueries.getNotifications(),
hasUnreadNotifications: () => notifierQueries.hasUnreadNotifications()
hasUnreadNotifications: () => notifierQueries.hasUnreadNotifications(),
alerts: () => notifierQueries.getAlerts()
},
Mutation: {
machineAction: (...[, { deviceId, action, cashbox, cassette1, cassette2, newName }]) => machineAction({ deviceId, action, cashbox, cassette1, cassette2, newName }),