in super-mode-calculator/src/lib/dynamo.ts [50:63]
endDate: toDateString(end),
endTimestamp: toDateHourString(end),
};
}
function writeBatchForSuperMode(
batch: DocumentClient.WriteRequest[],
stage: string,
docClient: DocumentClient,
): Promise<PromiseResult<DocumentClient.BatchWriteItemOutput, AWSError>> {
const table = `super-mode-calculator-${stage.toUpperCase()}`;
return docClient
.batchWrite({