From 2be8b4eef0be9a1ef1f3e83617b99751464dbcc6 Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com>
Date: Fri, 20 Nov 2015 01:40:27 -0200
Subject: [PATCH] fixing complaint builder

---
 app/builders/complaint_builder.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/builders/complaint_builder.rb b/app/builders/complaint_builder.rb
index 0886cafb..aabed37e 100644
--- a/app/builders/complaint_builder.rb
+++ b/app/builders/complaint_builder.rb
@@ -20,6 +20,7 @@ class ComplaintBuilder < Builder
 
   def self.build_from_orientdb(args = {})
     complaint = nil
+    args = args['result']
 
     unless args.nil?
       args['last_modified'] = nil
-- 
GitLab