Skip to content

Commit

Permalink
[api] fix crash in delayed job after method rename
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 24, 2017
1 parent 3e18fb6 commit ad4872d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/workers/accept_requests.rb
Expand Up @@ -4,7 +4,7 @@ def initialize

def perform
User.current = User.find_by_login('Admin')
BsRequest.find_requests_to_accept.each do |r|
BsRequest.to_accept.each do |r|
begin
r.change_state('accepted', comment: "Auto accept")
rescue BsRequestAction::UnknownProject,
Expand Down

0 comments on commit ad4872d

Please sign in to comment.