mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed error being saved in notification settings
refs https://github.com/TryGhost/Team/issues/754 - This is fixing the root cause of an error being saved in `settings` table under `notifications` key. There needs to be a follow up to this fixing any possible instances that might have been affected byt the bug
This commit is contained in:
parent
71a0572f8a
commit
a7dec233ba
3 changed files with 6 additions and 6 deletions
|
@ -55,8 +55,8 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
permissions: true,
|
||||
query(frame) {
|
||||
const allNotifications = notifications.destroy({
|
||||
async query(frame) {
|
||||
const allNotifications = await notifications.destroy({
|
||||
notificationId: frame.options.notification_id,
|
||||
user: {
|
||||
id: frame.user && frame.user.id
|
||||
|
|
|
@ -55,8 +55,8 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
permissions: true,
|
||||
query(frame) {
|
||||
const allNotifications = notifications.destroy({
|
||||
async query(frame) {
|
||||
const allNotifications = await notifications.destroy({
|
||||
notificationId: frame.options.notification_id,
|
||||
user: {
|
||||
id: frame.user && frame.user.id
|
||||
|
|
|
@ -55,8 +55,8 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
permissions: true,
|
||||
query(frame) {
|
||||
const allNotifications = notifications.destroy({
|
||||
async query(frame) {
|
||||
const allNotifications = await notifications.destroy({
|
||||
notificationId: frame.options.notification_id,
|
||||
user: {
|
||||
id: frame.user && frame.user.id
|
||||
|
|
Loading…
Add table
Reference in a new issue