text: const fetch = require("node-fetch");
  const keys = require("../keys");
  
  async function getAllVideoPokerHandsByUser(user) {
    const url = `https://api.airtable.com/v0/${
      keys.airtable_base_data
    }/VideoPoker?api_key=${
      keys.airtable_api_key
    }&filterByFormula=AND(UserId%3D"${encodeURIComponent(
      user.fields.RecordId
    )}")`;
    //console.log(`FULL PATH ${url}`);
    const options = { method: "GET" };
  
    return fetch(url, options)
      .then((res) => res.json())
      .then((r) => r.records);
  }
  
  module.exports = getAllVideoPokerHandsByUser;
  