Chore: actions methods rename
This commit is contained in:
@ -68,6 +68,11 @@ func HandleShowColor(w http.ResponseWriter, r *http.Request) {
|
||||
WordColor: string(color),
|
||||
Action: models.ActionTypeGuess,
|
||||
Word: word,
|
||||
RoomID: fi.Room.ID,
|
||||
}
|
||||
if err := repo.ActionCreate(r.Context(), &action); err != nil {
|
||||
abortWithError(w, err.Error())
|
||||
return
|
||||
}
|
||||
fi.Room.ActionHistory = append(fi.Room.ActionHistory, action)
|
||||
// if opened card is of color of opp team, change turn
|
||||
|
Reference in New Issue
Block a user