export const gameTransactionRes = (transaction: any) => {
    return {
      trx_id: transaction.tran_id,
      player_id: transaction.client_player_id,
      nickname: transaction.player_nickname, // rename from `name`
      game_name: transaction.game_title, // rename from `gametype`
      bet: transaction.coin_bet, // rename from `coin_bet`
      result: transaction.coin_result, // rename from `coin_result`
      player_profit: transaction.coin_bet - transaction.coin_result, // calculate
      trx_date: transaction.transaction_date,
      note: transaction.note_transaction,
      partner_id: transaction.partner_id,
    };
  };