Store client_info in database
authorVincent Tondellier <tonton+hg@team1664.org>
Sun, 14 Feb 2016 20:25:24 +0100
changeset 98 aa2437932c03
parent 97 f68abe1d7358
child 99 0e40a68ba421
Store client_info in database
lib/CrashTest/Plugin/Storage/Sql/Model/CrashReport.pm
--- a/lib/CrashTest/Plugin/Storage/Sql/Model/CrashReport.pm	Sun Feb 14 20:24:11 2016 +0100
+++ b/lib/CrashTest/Plugin/Storage/Sql/Model/CrashReport.pm	Sun Feb 14 20:25:24 2016 +0100
@@ -185,6 +185,8 @@
         $crash_group ? ($crash_group->{dist} || 0) : undef,
     )->hash;
 
+    # Create json for the params
+    $pjson->{client_info} = $client_info;
     $self->db->query(
         "INSERT INTO crash_report_datas (crash_report_id, processed) VALUES (?, ?) RETURNING id",
         $dbcrash->{id}, encode_json($pjson)