  def render_notification(notification)
    uniqueid = notification[:uniqueid]
    data = convert_to_hash(notification[:data])
    # In case data[:name] is invalid
    data[:email] = User.find(data[:user_id]).email
    case data[:type]
    when /comment/ then comment_link(uniqueid, data)
    when /accepted_ally_request/ then accepted_ally_link(uniqueid, data)
    when /new_ally_request/ then new_ally_request_link(uniqueid, data)
    when /group/ then group_link(uniqueid, data)
    when /meeting/ then meeting_link(uniqueid, data)
    end
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.