generated from VLADIMIR/template
add online games
This commit is contained in:
@@ -25,6 +25,7 @@ func mapGame(
|
||||
Description: o.Description,
|
||||
StartAt: timestamppb.New(o.StartAt),
|
||||
Status: o.Status,
|
||||
Format: o.Format,
|
||||
Scenario: mapScenario(o.Scenario),
|
||||
Teams: mapTeams(o.Teams),
|
||||
StartedAt: startedAt,
|
||||
|
||||
@@ -1152,6 +1152,7 @@ func (s *server) AddGame(ctx context.Context, req *proto.AddGameReq) (*proto.Add
|
||||
req.Description,
|
||||
req.StartAt.AsTime(),
|
||||
req.ScenarioId,
|
||||
req.Format,
|
||||
)
|
||||
if err != nil {
|
||||
return &proto.AddGameRsp{
|
||||
@@ -1274,6 +1275,7 @@ func (s *server) UpdateGame(ctx context.Context, req *proto.UpdateGameReq) (*pro
|
||||
req.Description,
|
||||
req.StartAt.AsTime(),
|
||||
req.ScenarioId,
|
||||
req.Format,
|
||||
)
|
||||
if err != nil {
|
||||
return &proto.UpdateGameRsp{
|
||||
|
||||
Reference in New Issue
Block a user