Skip to content

Commit 2d7b8df

Browse files
author
Micah Riggan
committed
Piping on wrong thing
1 parent 5b8a4a5 commit 2d7b8df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/bitcore-node/src/utils/cleanup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Storage.start({})
2828
.then(() => {
2929
let cursor = BlockModel.collection.find({});
3030
cursor.addCursorFlag('noCursorTimeout', true);
31-
cursor.pipe(new CleanupTransform());
32-
cursor.on('data', console.log);
33-
cursor.on('end', () => console.log('done'));
31+
cursor.pipe(new CleanupTransform())
32+
.on('data', console.log)
33+
.on('end', () => console.log('done'));
3434
})
3535
.catch(e => {
3636
console.error('fatal', e);

0 commit comments

Comments
 (0)