code: function createCustomNotification(notification) {
      if (!notification) {
          return Promise.resolve();
      }
  
      return Promise.each(notification.messages, function (message) {
          let toAdd = {
              // @NOTE: the update check service returns "0" or "1" (https://github.com/TryGhost/UpdateCheck/issues/43)
              custom: !!notification.custom,
              createdAt: moment(notification.created_at).toDate(),
              status: message.status || 'alert',
              type: message.type || 'info',
              id: message.id,
              dismissible: message.hasOwnProperty('dismissible') ? message.dismissible : true,
              top: !!message.top,
              message: message.content
          };
  
          debug('Add Custom Notification', toAdd);
          return api.notifications.add({notifications: [toAdd]}, {context: {internal: true}});
      });
  }
docs: @description Create a Ghost notification and call the API controller.
  
  @param {Object} notification
  @return {Promise}