S3 File Loader: Region missing fix

This commit is contained in:
vinodkiran
2023-12-06 15:01:30 +05:30
parent 516b713041
commit cc1a3101e2
@@ -162,9 +162,12 @@ class S3_DocumentLoaders implements INode {
accessKeyId?: string accessKeyId?: string
secretAccessKey?: string secretAccessKey?: string
} = { } = {
region,
credentials: {
accessKeyId, accessKeyId,
secretAccessKey secretAccessKey
} }
}
loader.load = async () => { loader.load = async () => {
const tempDir = fsDefault.mkdtempSync(path.join(os.tmpdir(), 's3fileloader-')) const tempDir = fsDefault.mkdtempSync(path.join(os.tmpdir(), 's3fileloader-'))