🔧 Some refactoring of import endpoints in facade

This commit is contained in:
2021-05-09 23:40:19 -07:00
parent d35f4b50b4
commit cd3d4e272d
5 changed files with 67 additions and 54 deletions

View File

@@ -28,16 +28,5 @@ export const greet = async (
},
fileObjects,
);
const reader = await ndjsonStream(fo).getReader();
reader.read().then(function process({ done, value }) {
if (done) {
console.log("done");
return;
}
console.log(value);
return reader.read().then(process);
});
// return JSON.stringify(fo);
};