File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const path = require("path");
44
55const avatarStorage = multer . diskStorage ( {
66 destination : ( _ , __ , cb ) => {
7- const dir = path . join ( process . env . NETWORK_STORAGE_PATH , "avatars" ) ;
7+ const dir = path . join ( process . env . NETWORK_STORAGE_PATH || "./uploads" , "avatars" ) ;
88
99 if ( ! fs . existsSync ( dir ) ) {
1010 fs . mkdirSync ( dir , { recursive : true } ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const path = require("path");
44
55const logoStorage = multer . diskStorage ( {
66 destination : ( _ , __ , cb ) => {
7- const dir = path . join ( process . env . NETWORK_STORAGE_PATH , "logos" ) ;
7+ const dir = path . join ( process . env . NETWORK_STORAGE_PATH || "./uploads" , "logos" ) ;
88
99 if ( ! fs . existsSync ( dir ) ) {
1010 fs . mkdirSync ( dir , { recursive : true } ) ;
You can’t perform that action at this time.
0 commit comments