Feat: settings repo
This commit is contained in:
@ -200,7 +200,7 @@ func HandleStartGame(w http.ResponseWriter, r *http.Request) {
|
||||
// Save action history
|
||||
action.RoomID = fi.Room.ID
|
||||
action.CreatedAt = time.Now()
|
||||
if err := repo.CreateAction(ctx, fi.Room.ID, &action); err != nil {
|
||||
if err := repo.CreateAction(ctx, &action); err != nil {
|
||||
if err := tx.Rollback(); err != nil {
|
||||
log.Error("failed to rollback transaction", "error", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user