Skip to content

Commit 333c98a

Browse files
authored
Merge pull request #1118 from jescalada/revert-dir-parsePush
fix: parsePush regression on tmp directory
2 parents 464929e + 450b646 commit 333c98a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/proxy/processors/push-action/parsePush.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Action, Step } from '../../actions';
22
import zlib from 'zlib';
3+
import fs from 'fs';
34
import lod from 'lodash';
45

56
import {
@@ -19,6 +20,12 @@ import {
1920

2021
const BitMask = require('bit-mask') as any;
2122

23+
const dir = './.tmp/';
24+
25+
if (!fs.existsSync(dir)) {
26+
fs.mkdirSync(dir);
27+
}
28+
2229
/**
2330
* Executes the parsing of a push request.
2431
* @param {*} req - The request object containing the push data.

0 commit comments

Comments
 (0)