Skip to content

Commit

Permalink
New domain
Browse files Browse the repository at this point in the history
  • Loading branch information
RNEvok committed Mar 14, 2024
1 parent 9a7199d commit 2d1a3d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
13 changes: 9 additions & 4 deletions Connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ export class Connector {
elapsedTime: endTimestamp - startTimestamp
};

this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_EVENT_LOG, eventLog);
const encryptedData = this._encryptData(eventLog);
encryptedData.ok && this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_EVENT_LOG, encryptedData.result);

return eventLog;
} catch (error: EventHandleError | unknown) {
Expand All @@ -204,7 +205,8 @@ export class Connector {
elapsedTime: endTimestamp - startTimestamp
};

this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_EVENT_LOG, eventLog);
const encryptedData = this._encryptData(eventLog);
encryptedData.ok && this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_EVENT_LOG, encryptedData.result);
}
}

Expand Down Expand Up @@ -240,7 +242,9 @@ export class Connector {
endTimestamp,
elapsedTime: endTimestamp - startTimestamp
};
this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_SCENARIO_LOG, scenarioLog);

const encryptedData = this._encryptData(scenarioLog);
encryptedData.ok && this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_SCENARIO_LOG, encryptedData.result);
} catch (error) {
codebudConsoleLog(`Error while trying to handle scenario.`, error);

Expand All @@ -255,7 +259,8 @@ export class Connector {
elapsedTime: endTimestamp - startTimestamp
};

this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_SCENARIO_LOG, scenarioLog);
const encryptedData = this._encryptData(scenarioLog);
encryptedData.ok && this._socket.emit(SOCKET_EVENTS_EMIT.SAVE_SCENARIO_LOG, encryptedData.result);
}
}

Expand Down
8 changes: 4 additions & 4 deletions config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const PAYLOAD_LIMIT_MAX_KB_SIZE = 1024;
const CONFIG_INNER = {
PRODUCT_NAME: "CodeBud",
MAX_IDENTICAL_CONSOLE_WARNINGS_IN_A_ROW: 3,
DOMAIN: "unitap.online",
MAIN_URL: "https://unitap.online",
BASE_URL: 'https://unitap.online/api',
DOMAIN: "codebud.io",
MAIN_URL: "https://codebud.io",
BASE_URL: 'https://codebud.io/api/v3',
DEV: {
"PRODUCTION": false,
"DEVELOPMENT": true
},
MAIN_SOCKET_ADDRESS: {
"PRODUCTION": "https://unitap.online",
"PRODUCTION": "https://codebud.io",
"DEVELOPMENT": "http://192.168.0.14:3000"
},
SOCKET_PATH: {
Expand Down

0 comments on commit 2d1a3d8

Please sign in to comment.