Skip to content

Commit

Permalink
Merge pull request #800 from icleitoncosta/hotfix/folderSticker
Browse files Browse the repository at this point in the history
fix: Correct path to download  stickers
  • Loading branch information
edgardmessias committed Jun 23, 2022
2 parents dc12115 + 79fe09a commit f977945
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import mergeDeep from 'merge-deep';
import { convert } from './mapper/index';

export function initServer(serverOptions) {
const __dirname = path.resolve(path.dirname(''));
if (typeof serverOptions !== 'object') {
serverOptions = {};
}
Expand All @@ -53,7 +52,7 @@ export function initServer(serverOptions) {
app.use(cors());
app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ limit: '50mb', extended: true }));
app.use('/files', express.static(path.resolve(__dirname, '..', 'WhatsAppImages')));
app.use('/files', express.static('WhatsAppImages'));
app.use(boolParser());

// Add request options
Expand Down

0 comments on commit f977945

Please sign in to comment.