feat: game order api methods
This commit is contained in:
@@ -916,13 +916,13 @@ func PayloadToUserGamesOrder(data []byte) (result *model.UserGamesOrder, err err
|
||||
if gameID == nil {
|
||||
return nil, errors.New("decode user games order payload: game_id is missing")
|
||||
}
|
||||
updatedAt, convErr := int64ToInt(flat.UpdatedAt(), "updated_at")
|
||||
if convErr != nil {
|
||||
return nil, fmt.Errorf("decode user games order payload: %w", convErr)
|
||||
}
|
||||
// updatedAt, convErr := int64ToInt(flat.UpdatedAt(), "updated_at")
|
||||
// if convErr != nil {
|
||||
// return nil, fmt.Errorf("decode user games order payload: %w", convErr)
|
||||
// }
|
||||
out := &model.UserGamesOrder{
|
||||
GameID: uuidFromHiLo(gameID.Hi(), gameID.Lo()),
|
||||
UpdatedAt: updatedAt,
|
||||
UpdatedAt: flat.UpdatedAt(),
|
||||
}
|
||||
count := flat.CommandsLength()
|
||||
if count > 0 {
|
||||
|
||||
Reference in New Issue
Block a user