From dd69e43bcd21b10dbc4ebb49250f250785cf363a Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Thu, 22 Sep 2022 15:48:10 -0300 Subject: [PATCH] make player option for anonymous statistics collecting --- backend/models/game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/models/game.go b/backend/models/game.go index 7c07060..a7087ab 100644 --- a/backend/models/game.go +++ b/backend/models/game.go @@ -10,7 +10,7 @@ import ( type Game struct { gorm.Model ID uint64 `json:"ID" gorm:"primaryKey"` - PlayerID uint64 `json:"player_id" gorm:"not null"` + PlayerID uint64 `json:"player_id"` Player Player `json:"player"` LevelID uint64 `json:"level_id" gorm:"not null"` Level Level `json:"level" gorm:"not null"`