Skip to content
Snippets Groups Projects
Commit 70e86bdf authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

fixing builder implementation

parent 770e84c7
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,10 @@ class ComplaintBuilder < Builder
end
def self.build_from_orientdb(args = {})
complaint = nil
unless args.nil?
created = DateTime.now.strftime("%Y-%m-%d %H:%M:%S")
created = DateTime.strptime(args['created_at'], "%Y-%m-%d %H:%M:%S") unless args['created_at'].blank?
Complaint.new(
id: args['@rid'],
user: user_repository.get_by_rid(args['out']),
......@@ -31,8 +31,6 @@ class ComplaintBuilder < Builder
description: args['description'] || ''
)
end
complaint
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment