Use ctx instead of db.DefaultContext

This commit is contained in:
Anthony Wang 2023-02-02 02:09:31 +00:00
parent de771dcd76
commit e44c986b86
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ func GetRepositoryByIRI(ctx context.Context, iri string) (*Repository, error) {
repo := &Repository{
OriginalURL: iri,
}
has, err := db.GetEngine(db.DefaultContext).Get(repo)
has, err := db.GetEngine(ctx).Get(repo)
if err != nil {
return nil, err
} else if !has {