Skip to content

Commit

Permalink
add go routines
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnsj4 committed Jun 23, 2023
1 parent 840949f commit 977a12a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/profile/UpdatePhotoProfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func UpdatePhotoProfile(c *gin.Context, router *gin.RouterGroup) {
}
}()

wg.Wait()

file, err := os.Open(path)
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{
Expand Down

3 comments on commit 977a12a

@vercel
Copy link

@vercel vercel bot commented on 977a12a Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 977a12a Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 977a12a Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.