Skip to content

Commit e2047ad

Browse files
committed
fix: remove double save on update
1 parent 4d9c258 commit e2047ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/content_item_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def update
3333
@content_item = ContentItem.find(id)
3434

3535
transact_and_refresh do
36-
@content_item.update(content_item_attributes)
36+
@content_item.assign_attributes(content_item_attributes)
3737
end
3838
end
3939

0 commit comments

Comments
 (0)