mirror of
https://github.com/pushbits/server.git
synced 2025-05-30 09:16:32 +02:00
Add scans with Semgrep
This commit is contained in:
parent
5cd3627dc6
commit
23e64b8380
73 changed files with 3006 additions and 3 deletions
|
@ -175,10 +175,10 @@ func (h *UserHandler) GetUsers(ctx *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
var externalUsers []*model.ExternalUser
|
||||
externalUsers := make([]*model.ExternalUser, len(users))
|
||||
|
||||
for _, user := range users {
|
||||
externalUsers = append(externalUsers, user.IntoExternalUser())
|
||||
for i, user := range users {
|
||||
externalUsers[i] = user.IntoExternalUser()
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, &externalUsers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue