This is the function that I'm invoking: ``` export const sendBatchQueueMessage = ({ batch, env,

This is the function that I'm invoking:
export const sendBatchQueueMessage = ({
  batch,
  env,
}: SendBatchQueueMessage) => {
  const ch = chunk(batch, 80);
  return Promise.all(
    ch.map((c) => {
      return env.PROCESS_QUEUE.sendBatch(
        c.map((body) => ({ body: body.message, contentType: 'json' })),
      );
    }),
  );
};
Was this page helpful?