async function getFromS3()

in src/lib/S3ToSalesforceUploader.ts [54:64]


async function getFromS3(source: S3Folder) {
	try {
		const s3Path = source.prefix;
		const file = await getObject(s3Path);
		return { s3Path: s3Path, file: file };
	} catch (err) {
		throw new Error(
			`Failed to download ${source.prefix} from S3 ${util.inspect(err)}`,
		);
	}
}