bland-actor-38038
08/09/2023, 9:22 PMcustomersTable
with guest data
for (const guest of guests) {
if (!existingUids.includes(guest.uid)) {
// Create a new record in the customersTable
with the guest data
await customerTable.createRecord({
firstName: guest.firstName,
lastName: guest.lastName,
phoneNumber: guest.phoneNumber,
uid: guest.uid,
email: guest.email,
});
existingUids.push(guest.uid); // Add UID to the list of existing UIDs
}
}
console.log('Data successfully populated in the customerTable');
} else {
console.log(Response status: ${response.status}
);
}
} catch (error) {
console.log('An error occurred:', error.message);
}
https://cdn.discordapp.com/attachments/1138945357372461106/1138945357590569050/Screenshot_2023-08-09_172149.png▾