Always send online as true when checking in with server
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user