更改:根据id查询issue pr缩小范围

This commit is contained in:
2024-10-15 14:04:07 +08:00
parent 359f1c40f6
commit a434fc59f5
5 changed files with 6 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ class MarkFilesController < ApplicationController
end
def load_pull_request
@pull_request = @project.pull_requests.where(gitea_number: params[:id]).where.not(id: params[:id]).take || PullRequest.find_by_id(params[:id])
@pull_request = @project.pull_requests.where(gitea_number: params[:id]).where.not(id: params[:id]).take || @project.pull_requests.find_by_id(params[:id])
end
end