1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

fix AWS datasource when endpoint is unspecified

This commit is contained in:
andz-bb 2024-08-08 11:11:21 +01:00
parent d03915d194
commit 5d5ccc84ce

View file

@ -304,7 +304,7 @@ export const getSignedUploadURL = async function (ctx: Ctx) {
try { try {
const s3 = new AWS.S3({ const s3 = new AWS.S3({
region: awsRegion, region: awsRegion,
endpoint: datasource?.config?.endpoint as string, endpoint: datasource?.config?.endpoint || undefined,
accessKeyId: datasource?.config?.accessKeyId as string, accessKeyId: datasource?.config?.accessKeyId as string,
secretAccessKey: datasource?.config?.secretAccessKey as string, secretAccessKey: datasource?.config?.secretAccessKey as string,
apiVersion: "2006-03-01", apiVersion: "2006-03-01",