From f34c05259dd5ac5582d3b1a25725ec41cb2d884a Mon Sep 17 00:00:00 2001 From: dineshsalunke Date: Wed, 17 Jan 2024 22:55:07 +0530 Subject: [PATCH] fix: ignore errors when loading data for converting project to response --- services/convert/project.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/convert/project.go b/services/convert/project.go index 59300b4fd5..506202f073 100644 --- a/services/convert/project.go +++ b/services/convert/project.go @@ -46,7 +46,7 @@ func ToAPIProject(ctx context.Context, project *project_model.Project) *api.Proj } // try to laod the repo - project.LoadRepo(ctx) + _ = project.LoadRepo(ctx) if project.Repo != nil { apiProject.Repo = &api.RepositoryMeta{ ID: project.RepoID, @@ -56,7 +56,7 @@ func ToAPIProject(ctx context.Context, project *project_model.Project) *api.Proj } } - project.LoadCreator(ctx) + _ = project.LoadCreator(ctx) if project.Creator != nil { apiProject.Creator = &api.User{ ID: project.Creator.ID, @@ -65,7 +65,7 @@ func ToAPIProject(ctx context.Context, project *project_model.Project) *api.Proj } } - project.LoadOwner(ctx) + _ = project.LoadOwner(ctx) if project.Owner != nil { apiProject.Owner = &api.User{ ID: project.Owner.ID,