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) {
17
17
18
18
imgur . setClientId ( config . imgur . clientID )
19
19
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
+ } )
28
28
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const fs = require('fs')
3
3
const path = require ( 'path' )
4
4
5
5
const config = require ( '../../config' )
6
- const { getImageMimeType} = require ( '../../utils' )
6
+ const { getImageMimeType } = require ( '../../utils' )
7
7
const logger = require ( '../../logger' )
8
8
9
9
const Minio = require ( 'minio' )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const fs = require('fs')
3
3
const path = require ( 'path' )
4
4
5
5
const config = require ( '../../config' )
6
- const { getImageMimeType} = require ( '../../utils' )
6
+ const { getImageMimeType } = require ( '../../utils' )
7
7
const logger = require ( '../../logger' )
8
8
9
9
const AWS = require ( 'aws-sdk' )
You can’t perform that action at this time.
0 commit comments