refactor: Remove redundant credentials

aws-sdk reads them from environment variables.
This commit is contained in:
roschaefer 2020-03-21 15:36:11 +01:00 committed by mattwr18
parent eb838257d4
commit 32da8b2982
2 changed files with 1 additions and 10 deletions

View File

@ -16,8 +16,6 @@ export async function up(next) {
const transaction = session.beginTransaction()
const {
AWS_ACCESS_KEY_ID: accessKeyId,
AWS_SECRET_ACCESS_KEY: secretAccessKey,
AWS_ENDPOINT: endpoint,
AWS_REGION: region,
AWS_BUCKET: Bucket,

View File

@ -8,14 +8,7 @@ import { getDriver } from '../../../db/neo4j'
import { s3Configs } from '../../../config'
// const widths = [34, 160, 320, 640, 1024]
const {
AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY,
AWS_ENDPOINT: endpoint,
AWS_REGION: region,
AWS_BUCKET: Bucket,
S3_CONFIGURED,
} = s3Configs
const { AWS_ENDPOINT: endpoint, AWS_REGION: region, AWS_BUCKET: Bucket, S3_CONFIGURED } = s3Configs
export async function deleteImage(resource, relationshipType, opts = {}) {
sanitizeRelationshipType(relationshipType)