function writeBatchForSuperMode()

in super-mode-calculator/src/lib/dynamo.ts [55:69]


function writeBatchForSuperMode(
	batch: DocumentClient.WriteRequest[],
	stage: string,
	docClient: DocumentClient,
): Promise<PromiseResult<DocumentClient.BatchWriteItemOutput, AWSError>> {
	const table = `super-mode-calculator-${stage.toUpperCase()}`;

	return docClient
		.batchWrite({
			RequestItems: {
				[table]: batch,
			},
		})
		.promise();
}