xiongzhu 2 лет назад
Родитель
Сommit
3b059454ea
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/game/game.service.ts

+ 2 - 0
src/game/game.service.ts

@@ -619,6 +619,7 @@ export class GameService implements OnModuleInit {
             new Game({
                 ...game,
                 id: null,
+                createdAt: null,
                 resetNum: game.resetNum + 1,
                 status: GameStatus.Initialized
             })
@@ -627,6 +628,7 @@ export class GameService implements OnModuleInit {
             new GameState({
                 ...firstState,
                 id: null,
+                createdAt: null,
                 gameId: newGame.id,
                 firstState: true,
                 lastState: null