fix: review
This commit is contained in:
parent
772805269f
commit
5045821593
9 changed files with 62 additions and 172 deletions
|
|
@ -13,7 +13,7 @@ const settingsLoader = require('../../new-settings-loader')
|
|||
// const tokenManager = require('../../token-manager')
|
||||
const blacklist = require('../../blacklist')
|
||||
const machineEventsByIdBatch = require("../../postgresql_interface").machineEventsByIdBatch
|
||||
const couponManager = require('../../coupon-manager')
|
||||
const couponManager = require('../../coupons')
|
||||
|
||||
const serverVersion = require('../../../package.json').version
|
||||
|
||||
|
|
@ -179,7 +179,6 @@ const typeDefs = gql`
|
|||
id: ID!
|
||||
code: String!
|
||||
discount: Int!
|
||||
soft_deleted: Boolean
|
||||
}
|
||||
|
||||
type Transaction {
|
||||
|
|
@ -295,7 +294,7 @@ const typeDefs = gql`
|
|||
deleteBlacklistRow(cryptoCode: String!, address: String!): Blacklist
|
||||
insertBlacklistRow(cryptoCode: String!, address: String!): Blacklist
|
||||
createCoupon(code: String!, discount: Int!): Coupon
|
||||
softDeleteCoupon(couponId: ID!): Coupon
|
||||
deleteCoupon(couponId: ID!): Coupon
|
||||
}
|
||||
`
|
||||
|
||||
|
|
@ -370,7 +369,7 @@ const resolvers = {
|
|||
blacklist.insertIntoBlacklist(cryptoCode, address),
|
||||
// revokeToken: (...[, { token }]) => tokenManager.revokeToken(token)
|
||||
createCoupon: (...[, { code, discount }]) => couponManager.createCoupon(code, discount),
|
||||
softDeleteCoupon: (...[, { couponId }]) => couponManager.softDeleteCoupon(couponId)
|
||||
deleteCoupon: (...[, { couponId }]) => couponManager.deleteCoupon(couponId)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue