Skip to content

Commit

Permalink
fix: Rename user_activity.go function
Browse files Browse the repository at this point in the history
  • Loading branch information
jperez-igz committed Jan 29, 2025
1 parent f9b2df2 commit adce5c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/api/entity/user_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewActivityVarsWithProjectAndUserID(projectID, userID string) []UserActivit
}
}

func NewActivityVarsCreateUser(userID string) []UserActivityVar {
func NewActivityVarsWithUserID(userID string) []UserActivityVar {
return []UserActivityVar{
{
Key: "USER_ID",
Expand Down
2 changes: 1 addition & 1 deletion app/api/usecase/user/interactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (i *Interactor) Create(ctx context.Context, email, sub string, accessLevel
}

// Save user creation in user activity
createUserActVars := entity.NewActivityVarsCreateUser(insertedID)
createUserActVars := entity.NewActivityVarsWithUserID(insertedID)
createUserdAct := entity.UserActivity{
Date: i.clock.Now(),
UserID: insertedID,
Expand Down

0 comments on commit adce5c0

Please sign in to comment.