Skip to content

Commit

Permalink
remove manual UUID generation for team members
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirAgassi committed Dec 23, 2024
1 parent b8defd9 commit 524c678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/.sqlc/queries/team_members.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-- name: CreateTeamMember :one
INSERT INTO team_members (
id, company_id, first_name, last_name,
company_id, first_name, last_name,
title, bio, linkedin_url, is_account_owner
) VALUES (
$1, $2, $3, $4, $5, $6, $7, $8
$1, $2, $3, $4, $5, $6, $7
)
RETURNING *;

Expand Down
1 change: 0 additions & 1 deletion backend/internal/v1/v1_teams/members.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func (h *Handler) handleAddTeamMember(c echo.Context) error {
// Create team member in database
queries := db.New(h.server.GetDB())
member, err := queries.CreateTeamMember(c.Request().Context(), db.CreateTeamMemberParams{
ID: uuid.New().String(),
CompanyID: companyID,
FirstName: req.FirstName,
LastName: req.LastName,
Expand Down

0 comments on commit 524c678

Please sign in to comment.