This commit is contained in:
darius 2024-03-06 09:45:42 +01:00
parent 62a7d3b920
commit bfa2599495

View File

@ -14,7 +14,6 @@ func GetUser(ctx context.Context, id int) (*ent.User, error) {
u, err := database.DBclient.User.
Query().
Where(user.ID(id)).
WithTeams().
Only(ctx)
if err != nil {
return nil, fmt.Errorf("failed querying user: %w", err)