generated from VLADIMIR/template
add location
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user