Showing
1 changed file
with
1 additions
and
8 deletions
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | const Router = require('koa-router'); | 2 | const Router = require('koa-router'); |
3 | const _ = require('lodash'); | 3 | const _ = require('lodash'); |
4 | const md5 = require('md5'); | 4 | const md5 = require('md5'); |
5 | -const stream = require('stream'); | ||
6 | 5 | ||
7 | const CDNCONFIG = require('../../../config/cdn_config'); | 6 | const CDNCONFIG = require('../../../config/cdn_config'); |
8 | 7 | ||
@@ -37,16 +36,10 @@ const client = { | @@ -37,16 +36,10 @@ const client = { | ||
37 | }; | 36 | }; |
38 | } | 37 | } |
39 | 38 | ||
40 | - let ste = new Buffer.from(JSON.stringify({ | 39 | + let readable = new Buffer.from(JSON.stringify({ |
41 | files: trimFiles, | 40 | files: trimFiles, |
42 | revision | 41 | revision |
43 | })); | 42 | })); |
44 | - | ||
45 | - const bufferStream = new stream.PassThrough(); | ||
46 | - let readable = bufferStream.end(new Buffer.from(JSON.stringify({ | ||
47 | - files: trimFiles, | ||
48 | - revision | ||
49 | - }))); | ||
50 | let config = _.cloneDeep(CDNCONFIG.main); | 43 | let config = _.cloneDeep(CDNCONFIG.main); |
51 | 44 | ||
52 | _.assign(config, { | 45 | _.assign(config, { |
-
Please register or login to post a comment