mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Fixed notifications api user for internal context
refs #12537
- Fix after a refactor introduced in 935ffdd0f6
This commit is contained in:
parent
935ffdd0f6
commit
cc9d987e94
@ -10,7 +10,7 @@ module.exports = {
|
||||
query(frame) {
|
||||
return notifications.browse({
|
||||
user: {
|
||||
id: frame.user.id
|
||||
id: frame.user && frame.user.id
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -57,7 +57,7 @@ module.exports = {
|
||||
const allNotifications = notifications.destroy({
|
||||
notificationId: frame.options.notification_id,
|
||||
user: {
|
||||
id: frame.user.id
|
||||
id: frame.user && frame.user.id
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -10,7 +10,7 @@ module.exports = {
|
||||
query(frame) {
|
||||
return notifications.browse({
|
||||
user: {
|
||||
id: frame.user.id
|
||||
id: frame.user && frame.user.id
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -57,7 +57,7 @@ module.exports = {
|
||||
const allNotifications = notifications.destroy({
|
||||
notificationId: frame.options.notification_id,
|
||||
user: {
|
||||
id: frame.user.id
|
||||
id: frame.user && frame.user.id
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user