更改:导入工作项默认创建者

This commit is contained in:
yystopf 2025-06-16 09:01:36 +08:00
parent f1bf41c7f6
commit ba2a76de8c
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
issue.fake_id = row[0]
issue.subject = row[1]
issue.description = row[2]
author = User.find_by(login: row[3])
author = User.find_by(login: row[3]) || User.where(admin: true).first
issue.user = author
issue.created_on = row[4]
changer = User.find_by(login: row[5])