{"size": 394, "ext": "js", "max_stars_repo_path": "lib/helpers/notifications.js", "max_stars_repo_name": "KofiQ/nodetube", "max_stars_repo_stars_event_min_datetime": "2020-01-03T06:44:53.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-03T06:44:53.000Z", "max_issues_repo_path": "lib/helpers/notifications.js", "max_issues_repo_name": "KofiQ/nodetube", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/helpers/notifications.js", "max_forks_repo_name": "KofiQ/nodetube", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.7368421053, "max_line_length": 82, "alphanum_fraction": 0.6573604061}
const Notification = require('../../models/index').Notification;

async function createNotification(user, sender, action, upload, react, comment) {
  const notification = new Notification({
    user,
    sender,
    action,
    upload,
    react,
    comment,
  });

  await notification.save();

  console.log('created notification');
}

module.exports = createNotification;
