From 3ccac9192d873072fab3fe879082ad96d8b495b3 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Sat, 7 Oct 2023 21:12:58 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=BB=84=E7=BB=87pr=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/glcc_medium_term_examine_material.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/glcc_medium_term_examine_material.rb b/app/models/glcc_medium_term_examine_material.rb index 56e78c29e..0e22690c8 100644 --- a/app/models/glcc_medium_term_examine_material.rb +++ b/app/models/glcc_medium_term_examine_material.rb @@ -36,7 +36,7 @@ class GlccMediumTermExamineMaterial < ActiveRecord::Base unless pull_index == 5 state << 2 end - user = User.find_by(login: url_array[3]) + user = Owner.find_by(login: url_array[3]) project = Project.find_by(identifier: url_array[4], user_id:user.try(:id)) pr = PullRequest.where(project:project, gitea_number:url_array[6])