mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added JSDoc to notifications service's destroy
refs https://github.com/TryGhost/Team/issues/754 - Extra type intellisense is good!
This commit is contained in:
parent
b5fb439ae7
commit
07f7a7a158
1 changed files with 9 additions and 0 deletions
|
@ -164,6 +164,15 @@ class Notifications {
|
|||
return {allNotifications, notificationsToAdd};
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {Object} options
|
||||
* @param {string} options.notificationId - UUID of the notification
|
||||
* @param {Object} options.user
|
||||
* @param {string} options.user.id
|
||||
*
|
||||
* @returns {Promise<Object[]>}
|
||||
*/
|
||||
destroy({notificationId, user}) {
|
||||
const allNotifications = this.fetchAllNotifications();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue