recator: Repo interface

This commit is contained in:
Ilia Denisov
2026-02-04 17:29:05 +02:00
parent 9a6d4112cf
commit 9d46abe805
11 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func newGameOnMap(r Repo, races []string, m generator.Map) (uuid.UUID, error) {
if err != nil {
return uuid.Nil, err
}
if err := r.SaveTurn(0, g); err != nil {
if err := r.SaveNewTurn(0, g); err != nil {
return uuid.Nil, err
}
return g.ID, nil