feat: change custom SMS instances to SMS notices and all its interfaces

This commit is contained in:
Sérgio Salgado 2022-02-04 19:39:35 +00:00
parent 04f4891291
commit 0d5f5167ef
12 changed files with 153 additions and 149 deletions

View file

@ -1,13 +1,13 @@
const customSms = require('../../../custom-sms')
const customSms = require('../../../sms-notices')
const resolvers = {
Query: {
customMessages: () => customSms.getCustomMessages()
SMSNotices: () => customSms.getSMSNotices()
},
Mutation: {
createCustomMessage: (...[, { event, message }]) => customSms.createCustomMessage(event, message),
editCustomMessage: (...[, { id, event, message }]) => customSms.editCustomMessage(id, event, message),
deleteCustomMessage: (...[, { id }]) => customSms.deleteCustomMessage(id)
editSMSNotice: (...[, { id, event, message }]) => customSms.editSMSNotice(id, event, message),
enableSMSNotice: (...[, { id }]) => customSms.enableSMSNotice(id),
disableSMSNotice: (...[, { id }]) => customSms.disableSMSNotice(id)
}
}