Always send online as true when checking in with server

This commit is contained in:
Logan Cusano
2023-06-19 02:33:06 -04:00
parent 9ce77a5be0
commit ea2dbd9fb0

View File

@@ -102,7 +102,8 @@ exports.checkIn = async () => {
await this.checkConfig();
// Check if there is an ID found, if not add the node to the server. If there was an ID, check in with the server to make sure it has the correct information
try {
if (!runningClientConfig?.id || runningClientConfig.id == 0) {
if (!runningClientConfig?.id || runningClientConfig.id == 0) {
runningClientConfig.online = true;
// ID was not found in the config, creating a new node
reqOptions = new requestOptions("/nodes/newNode", "POST");
sendHttpRequest(reqOptions, JSON.stringify(runningClientConfig), async (responseObject) => {