Skip to content

Commit

Permalink
Style updates and console.log removals
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-Ag committed Jul 25, 2024
1 parent 48ff851 commit f747dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default class FacebookClient {

private generateSchema = (payloads: Payload[]): string[] => {
const schema = new Set<string>()

payloads.forEach((payload) => {
Object.keys(payload).forEach((key) => {
schema.add(key.toUpperCase())
Expand All @@ -114,14 +115,13 @@ export default class FacebookClient {
const data: (string | number)[][] = []

payloads.forEach((payload) => {
console.log('payload', payload)
const row: string[] = []

schema.forEach((key) => {
console.log('key', key)
const value = payload[key.toLowerCase() as keyof Payload]
console.log('value', value)
row.push(this.hash(value) || '')
})

data.push(row)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ const action: ActionDefinition<Settings, Payload> = {
}
},
performBatch: async (request, { settings, payload, hookOutputs, syncMode }) => {
console.log('test performBatch')
const fbClient = new FacebookClient(request, settings.retlAdAccountId)

if (syncMode === 'add' || syncMode === 'update' || syncMode === 'upsert') {
Expand Down

0 comments on commit f747dfd

Please sign in to comment.