add location

This commit is contained in:
2026-09-18 16:01:02 +07:00
parent fc171dace5
commit 32191529a5
15 changed files with 106 additions and 21 deletions
+5
View File
@@ -10,6 +10,10 @@ import (
func mapGame(
o *game_model.Game,
) *proto.Game {
location := ""
if o.Location != nil {
location = *o.Location
}
var startedAt *timestamppb.Timestamp
if o.StartedAt != nil {
startedAt = timestamppb.New(*o.StartedAt)
@@ -27,6 +31,7 @@ func mapGame(
Id: int32(o.ID),
Name: o.Name,
Description: o.Description,
Location: location,
StartAt: timestamppb.New(o.StartAt),
Status: o.Status,
Format: o.Format,