aboutsummaryrefslogtreecommitdiffstats
path: root/internal/user/handler.go
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-08-10 14:28:24 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-09-06 01:13:29 -0400
commit187078ffe8db564f5a34d90acd24116daae9e901 (patch)
tree5082e6bd0efef508b33135103efb91167f4269d7 /internal/user/handler.go
parentbddb80b1349c517ceaeacb92f5f8be9f482f400a (diff)
downloaddonetick-187078ffe8db564f5a34d90acd24116daae9e901.tar.gz
donetick-187078ffe8db564f5a34d90acd24116daae9e901.tar.bz2
donetick-187078ffe8db564f5a34d90acd24116daae9e901.zip
update `updateAssignee` to retrieve the current user and use their ID as the `UpdatedBy` field.
Diffstat (limited to '')
-rw-r--r--internal/user/handler.go2
1 files changed, 1 insertions, 1 deletions
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
}