lib/chatwork/client/task_methods.rb in chatwork-0.12.3 vs lib/chatwork/client/task_methods.rb in chatwork-1.0.0
- old
+ new
@@ -63,11 +63,11 @@
# {
# "task_ids": [123,124]
# }
def create_task(room_id:, body:, to_ids:, limit: nil, limit_type: nil, &block)
params = {
- body: body,
- to_ids: Array(to_ids).join(","),
+ body: body,
+ to_ids: Array(to_ids).join(","),
limit_type: limit_type,
}
params[:limit] = limit.to_i if limit
post("/rooms/#{room_id}/tasks", params, &block)