Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 59a5068

Browse files
committed
put tags for update is working now
1 parent 0ce1cd1 commit 59a5068

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/creatubbles/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def connect!(hash)
2121
end
2222

2323
def connection_hash
24-
@connection&.to_hash
24+
@connection.to_hash
2525
end
2626

2727
def disconnect!

lib/creatubbles/creation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Creatubbles::Creation < Creatubbles::BaseObject
2929
]
3030

3131
def update_tags(tags)
32-
@connection.put("creations/#{id}", :params => { 'tags' => tags })
32+
@connection.put("creations/#{id}", :body => { 'data' => { 'type' => 'creations', 'attributes': {'tags' => tags }}})
3333
end
3434

3535
def upload(file)

0 commit comments

Comments
 (0)