Skip to content

Commit

Permalink
fix: update variable correctly (#328)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
  • Loading branch information
golanglemonade authored Dec 17, 2024
1 parent 8c6051f commit fc464b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ steps:
agents:
queue: $LARGE_RUNNER_QUEUE
size: $RUNNER_LARGE
location: "SAT"
cancel_on_build_failing: true
timeout_in_minutes: 20
key: "lint"
Expand Down
2 changes: 1 addition & 1 deletion internal/ent/hooks/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func HookUser() ent.Hook {
if m.Op().Is(ent.OpCreate) {
displayName, _ := m.DisplayName()
if displayName == "" {
displayName := strings.Split(email, "@")[0]
displayName = strings.Split(email, "@")[0]

m.SetDisplayName(displayName)
}
Expand Down

0 comments on commit fc464b2

Please sign in to comment.