forked from forgejo/forgejo
[F3] upgrade to urfave v2
This commit is contained in:
parent
f7638f5414
commit
cc3dbdfd1d
4 changed files with 35 additions and 24 deletions
|
@ -164,7 +164,7 @@ func (o *IssueProvider) ProcessObject(ctx context.Context, user *User, project *
|
|||
|
||||
func (o *IssueProvider) Get(ctx context.Context, user *User, project *Project, exemplar *Issue) *Issue {
|
||||
id := exemplar.GetID()
|
||||
issue, err := issues_model.GetIssueByIndex(project.GetID(), id)
|
||||
issue, err := issues_model.GetIssueByIndex(ctx, project.GetID(), id)
|
||||
if issues_model.IsErrIssueNotExist(err) {
|
||||
return &Issue{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue