fix: include correct fields oops

This commit is contained in:
Naomi Carrigan 2024-05-20 22:14:58 -07:00
parent a85b478dba
commit 258d9a88e2
No known key found for this signature in database
GPG Key ID: 7019A402E94A9808

View File

@ -45,7 +45,8 @@ export const checkAirtableRecords = async (bot: ExtendedClient) => {
Reference: images,
"Contact Method": platform,
Handle: handle,
"Anything Else?": note,
"What would you like us to draw?": note,
"Anything Else?": additional,
} = record.fields;
const files: AttachmentBuilder[] = [];
for (const imageUrl of images) {
@ -58,7 +59,10 @@ export const checkAirtableRecords = async (bot: ExtendedClient) => {
files.push(file);
}
await bot.comm.send({
content: `**FOR:** ${name} - Contact via ${platform}: ${handle}\n\n${note}\n\nReferences:`,
content: `**FOR:** ${name} - Contact via ${platform}: ${handle}\n\n${note?.slice(
0,
1000
)}\n\n${additional?.slice(0, 1000)}\n\nReferences:`,
files,
});
return;