Skip to content

Commit

Permalink
remove image compression after save
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi12299 committed Jan 15, 2021
1 parent 9cf5aaf commit e8da6a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/media.model.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const mongoose = require('mongoose')
const logger = require('../logger')
const baseURL = require('../constants/apiURL')
const optimizeImage = require('../helpers/optimizeImage')
// const optimizeImage = require('../helpers/optimizeImage')

const Schema = mongoose.Schema
const MediaSchema = new Schema(
Expand Down Expand Up @@ -140,7 +140,7 @@ MediaSchema.statics = {
}

MediaSchema.post('save', (doc, next) => {
optimizeImage(doc._id)
// optimizeImage(doc._id)
next()
})

Expand Down

0 comments on commit e8da6a5

Please sign in to comment.