mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
refactor: Remove redundant credentials
aws-sdk reads them from environment variables.
This commit is contained in:
parent
eb838257d4
commit
32da8b2982
@ -16,8 +16,6 @@ export async function up(next) {
|
|||||||
const transaction = session.beginTransaction()
|
const transaction = session.beginTransaction()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
AWS_ACCESS_KEY_ID: accessKeyId,
|
|
||||||
AWS_SECRET_ACCESS_KEY: secretAccessKey,
|
|
||||||
AWS_ENDPOINT: endpoint,
|
AWS_ENDPOINT: endpoint,
|
||||||
AWS_REGION: region,
|
AWS_REGION: region,
|
||||||
AWS_BUCKET: Bucket,
|
AWS_BUCKET: Bucket,
|
||||||
|
|||||||
@ -8,14 +8,7 @@ import { getDriver } from '../../../db/neo4j'
|
|||||||
import { s3Configs } from '../../../config'
|
import { s3Configs } from '../../../config'
|
||||||
|
|
||||||
// const widths = [34, 160, 320, 640, 1024]
|
// const widths = [34, 160, 320, 640, 1024]
|
||||||
const {
|
const { AWS_ENDPOINT: endpoint, AWS_REGION: region, AWS_BUCKET: Bucket, S3_CONFIGURED } = s3Configs
|
||||||
AWS_ACCESS_KEY_ID,
|
|
||||||
AWS_SECRET_ACCESS_KEY,
|
|
||||||
AWS_ENDPOINT: endpoint,
|
|
||||||
AWS_REGION: region,
|
|
||||||
AWS_BUCKET: Bucket,
|
|
||||||
S3_CONFIGURED,
|
|
||||||
} = s3Configs
|
|
||||||
|
|
||||||
export async function deleteImage(resource, relationshipType, opts = {}) {
|
export async function deleteImage(resource, relationshipType, opts = {}) {
|
||||||
sanitizeRelationshipType(relationshipType)
|
sanitizeRelationshipType(relationshipType)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user