We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8571225 commit abaeae1Copy full SHA for abaeae1
internal/app/repository/user.go
@@ -39,7 +39,7 @@ func (r *userRepo) Create(ctx context.Context, user *models.User) error {
39
40
func (r *userRepo) AddUserToTeams(ctx context.Context, userId openapi_types.UUID, teamIds *[]openapi_types.UUID) error {
41
for _, teamId := range *teamIds {
42
- _, err := r.db.ExecContext(ctx, "INSERT INTO profiles (user_id, team_id) VALUES ($1, $2)", userId, teamId)
+ _, err := r.db.ExecContext(ctx, "INSERT INTO profiles (user_id, current_team_id) VALUES ($1, $2)", userId, teamId)
43
if err != nil {
44
return err
45
}
0 commit comments