abedelbahnasy55's picture
fix: public habits endpoint + seedDemoUser + fresh build v1.6
6491ad4 verified
Raw
History Blame Contribute Delete
263 Bytes
'use strict'
const { Writable } = require('stream')
function run (opts) {
const { port } = opts
return new Writable({
autoDestroy: true,
write (chunk, enc, cb) {
port.postMessage(chunk.toString())
cb()
}
})
}
module.exports = run