This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CreateIndex({ | |
| name: "colors_ref_by_user_ts_reverse", | |
| unique: false, | |
| serialized: true, | |
| source: Collection("Color"), | |
| terms: [ | |
| { | |
| field: ["data", "owner"] | |
| } | |
| ], | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # imported schema to faunadb | |
| type User { | |
| netlifyId: ID! | |
| stripeId: ID! | |
| subscription: String! | |
| subscriptionPlanId: String! | |
| activeSubscription: Boolean! | |
| emailAddress: String! @unique | |
| groups: [String]! | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | createBrand: async ( | |
| _, | |
| { | |
| data: { | |
| name, | |
| brandWatchList: { connect: id }, | |
| }, | |
| }, | |
| { user }, | |
| ) => { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const filteredData = mergedResults.reduce((newSet, current) => { | |
| const findExisting = newSet.find((item) => item.url === current.url); | |
| if (!findExisting) { | |
| return newSet.concat([current]); | |
| } | |
| return newSet; | |
| }, []); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const removeDuplicates = (data, key) => { | |
| const item = new Set(); | |
| return data.filter((obj) => !item.has(obj[key]) && item.add(obj[key])); | |
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | β | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| Netlify Build | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| > Version | |
| @netlify/build 9.19.1 | |
| β | |
| > Flags | |
| mode: cli | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [build] | |
| command = 'npm run prebuild-retailers && npm run process-retailer-images && npm run prebuild-identity-signup && npm run prebuild-customer-portal && yarn run build --verbose' | |
| functions = 'functions' | |
| publish = 'public' | |
| [build.environment] | |
| NODE_OPTIONS = '--max_old_space_size=8192' | |
| YARN_VERSION = '1.22.10' | |
| NODE_VERSION = "14.15.0" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | D:\Files\dev\ga-hounderly [master β‘]> netlify build | |
| β | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| Netlify Build | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| > Version | |
| @netlify/build 9.19.1 | |
| β | |
| > Flags | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { useEffect } from 'react'; | |
| import { get } from 'lodash'; | |
| import { navigate } from 'gatsby'; | |
| import { useLoading } from '@luigiclaudio/ga-baseline-ui/helpers'; | |
| import { Identity } from '@luigiclaudio/ga-auth-theme'; | |
| const useUser = () => { | |
| const { user, getFreshJWT, logoutUser } = Identity.useIdentityContext(); | |
| const [isLoading, load] = useLoading(); | |
| const tokenObject = get(user, 'token'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const fs = require('fs'); | |
| exports.onPostBuild = async ({ graphql }) => { | |
| await graphql(` | |
| { | |
| activeAds: allStoreProducts(filter: { cms: { isAdvertised: { eq: true } } }) { | |
| nodes { | |
| productId | |
| cms { | |
| title | 
NewerOlder