File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ exports.uploadImage = function (imagePath, callback) {
1717
1818 imgur . setClientId ( config . imgur . clientID )
1919 imgur . uploadFile ( imagePath )
20- . then ( function ( json ) {
21- if ( config . debug ) {
22- logger . info ( 'SERVER uploadimage success: ' + JSON . stringify ( json ) )
23- }
24- callback ( null , json . data . link . replace ( / ^ h t t p : \/ \/ / i, 'https://' ) )
25- } ) . catch ( function ( err ) {
26- callback ( new Error ( err ) , null )
27- } )
20+ . then ( function ( json ) {
21+ if ( config . debug ) {
22+ logger . info ( 'SERVER uploadimage success: ' + JSON . stringify ( json ) )
23+ }
24+ callback ( null , json . data . link . replace ( / ^ h t t p : \/ \/ / i, 'https://' ) )
25+ } ) . catch ( function ( err ) {
26+ callback ( new Error ( err ) , null )
27+ } )
2828}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const fs = require('fs')
33const path = require ( 'path' )
44
55const config = require ( '../../config' )
6- const { getImageMimeType} = require ( '../../utils' )
6+ const { getImageMimeType } = require ( '../../utils' )
77const logger = require ( '../../logger' )
88
99const Minio = require ( 'minio' )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const fs = require('fs')
33const path = require ( 'path' )
44
55const config = require ( '../../config' )
6- const { getImageMimeType} = require ( '../../utils' )
6+ const { getImageMimeType } = require ( '../../utils' )
77const logger = require ( '../../logger' )
88
99const AWS = require ( 'aws-sdk' )
You can’t perform that action at this time.
0 commit comments