Assign default circle to user when leaving a circle
This commit is contained in:
parent
95a9e4af5b
commit
850d472445
2 changed files with 19 additions and 0 deletions
|
@ -191,6 +191,7 @@ func handleUserLeavingCircle(h *Handler, c *gin.Context, leavingUser *uModel.Use
|
|||
|
||||
h.choreRepo.UpdateChores(c, userAssignedCircleChores)
|
||||
h.choreRepo.RemoveChoreAssigneeByCircleID(c, leavingUser.ID, leavingUser.CircleID)
|
||||
h.circleRepo.AssignDefaultCircle(c, leavingUser.ID)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue