Skip to content

Commit

Permalink
can't have limit on update
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba committed Dec 28, 2023
1 parent 391f910 commit 9929368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kirei/base_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module InstanceMethods
).returns(T.self_type)
end
def update(hash)
query = self.class.db.where({ id: id }).limit(1).update(hash)
query = self.class.db.where({ id: id }).update(hash)
self.class.find_by({ id: id })
end
end
Expand Down

0 comments on commit 9929368

Please sign in to comment.