lib/zendesk2/client/requests/update_ticket.rb in zendesk2-0.1.1 vs lib/zendesk2/client/requests/update_ticket.rb in zendesk2-0.1.2
- old
+ new
@@ -21,11 +21,11 @@
audit_id = self.class.new_id
self.data[:ticket_audits][audit_id] = {
"id" => audit_id,
"ticket_id" => ticket_id,
"created_at" => Time.now,
- "author_id" => current_user_id,
+ "author_id" => current_user["id"],
"via" => {
"channel" => "api",
"source" => {
"form" => {},
"to" => {},
@@ -43,10 +43,10 @@
"custom" => {},
},
"events" => [
"id" => self.class.new_id,
"type" => "Comment",
- "author_id" => current_user_id,
+ "author_id" => current_user["id"],
"body" => comment["body"],
"html_body" => "<p>#{comment["body"]}</p>",
"public" => comment["public"].nil? ? true : comment["public"],
"trusted" => comment["trusted"].nil? ? true : comment["trusted"],
"attachments" => comment["attachments"] || [],