Return a highland stream
Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com>
This commit is contained in:
11405
package-lock.json
generated
11405
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,8 @@ import { Readable } from "stream";
|
|||||||
import through2 from "through2";
|
import through2 from "through2";
|
||||||
import oboe from "oboe";
|
import oboe from "oboe";
|
||||||
import H from "highland";
|
import H from "highland";
|
||||||
import { stringify } from "highland-json";
|
import { stringify } from "highland-json";
|
||||||
|
|
||||||
export default class ProductsService extends Service {
|
export default class ProductsService extends Service {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
public constructor(public broker: ServiceBroker, schema: ServiceSchema<{}> = {}) {
|
public constructor(public broker: ServiceBroker, schema: ServiceSchema<{}> = {}) {
|
||||||
@@ -64,7 +65,7 @@ export default class ProductsService extends Service {
|
|||||||
ctx.params.walkedFolders
|
ctx.params.walkedFolders
|
||||||
);
|
);
|
||||||
const foo = H(comicBookCoversData)
|
const foo = H(comicBookCoversData)
|
||||||
.through(stringify);
|
return foo;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user