finish migration of lights script to backend

This commit is contained in:
jane 2021-06-04 23:51:59 -04:00
parent be73eaa4cd
commit 8b6116e0cc
2 changed files with 38 additions and 17 deletions

View file

@ -39,7 +39,7 @@ export default function req(data, callback, errorCallback) {
client.write(string_data);
})
client.on('data', (dat) => {
callback(dat);
callback(String(dat));
client.destroy();
})