diff --git a/cli/commands/play.go b/cli/commands/play.go index 5456cfa..5f8dfdc 100644 --- a/cli/commands/play.go +++ b/cli/commands/play.go @@ -221,6 +221,8 @@ func (gameState *GameState) Run() error { if gameState.outputFile != nil { // insert initial game start into database + // direct db call since this is the first event + bytes, err := json.Marshal(boardGame) if err != nil { @@ -362,6 +364,7 @@ func (gameState *GameState) Run() error { if gameState.outputFile != nil { // write frames array to db + // insert game end into database bytes, err := json.Marshal(endEvent) if err != nil {