fix: parse machine-id correctly

This commit is contained in:
Alexis Tyler
2021-03-03 14:25:54 +10:30
parent 269fb21f64
commit 9d97a28a18
+1 -1
View File
@@ -17,7 +17,7 @@ export const getMachineId = async (): Promise<string> => {
}
if (!machineId) {
machineId = await fs.promises.readFile(path, 'utf8').then(machineId => machineId.split('\n')[0].trim());
machineId = await fs.promises.readFile(path, 'utf-8').then(machineId => machineId.split('\n')[0].trim());
}
return machineId;