fix stdio input

This commit is contained in:
beanjs 2024-09-27 11:44:36 +08:00
parent 659078f9d6
commit 728a619bf8

View File

@ -124,7 +124,9 @@ export default class ScheduleService {
});
callbacks.onMessage?.((msg:string,conn:Connection)=>{
cp.stdin.write(JSON.parse(msg).message)
const { message } = JSON.parse(msg)
if(!message) return
cp.stdin.write(message + "\n")
})
} catch (error) {
this.logger.error(