From 187078ffe8db564f5a34d90acd24116daae9e901 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sat, 10 Aug 2024 14:28:24 -0400 Subject: update `updateAssignee` to retrieve the current user and use their ID as the `UpdatedBy` field. --- internal/user/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/user') diff --git a/internal/user/handler.go b/internal/user/handler.go index ff885f3..d45f05c 100644 --- a/internal/user/handler.go +++ b/internal/user/handler.go @@ -102,7 +102,7 @@ func (h *Handler) signUp(c *gin.Context) { UpdatedAt: time.Now(), }); err != nil { c.JSON(500, gin.H{ - "error": "Error creating user", + "error": "Error creating user, email already exists or username is taken", }) return } -- cgit