Skip to content

Commit

Permalink
Set default config
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Mar 18, 2022
1 parent dbd4c1c commit 4be5b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import sharp from 'sharp'
import path from 'path'
import bytes from 'bytes'

import { defaultOptions } from './config/sharp'
import { defaultOptions, config as sharpConfig } from './config/sharp'

const BASE_DATA_DIR = process.env.BASE_DATA_DIR || '/'

Expand All @@ -29,7 +29,7 @@ const logger = winston.createLogger({
export const optimizeImage = async (job) => {
const {
filename,
config
config = sharpConfig.artwork
} = job.data

const input = path.join(BASE_DATA_DIR, `/data/media/incoming/${filename}`)
Expand Down

0 comments on commit 4be5b69

Please sign in to comment.