Skip to content

Commit

Permalink
Correction of null values]
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelatti committed Nov 25, 2024
1 parent e32c0cd commit 34ad98e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/sdk/src/Types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ export * from "./Statistic/Statistic.types.ts";
export * from "./Summary/Summary.types.ts";
export * from "./Tag/Tag.types.ts";
export * from "./Account/Account.types.ts";
export * from "./Helpers/removeNullValues.ts";
3 changes: 2 additions & 1 deletion plugins/tagoio-integration/src/back/RealtimeConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import EventSource from "eventsource";
import { cache } from "./Global.ts";
import { getMachineID } from "./Helpers.ts";
import { sendDataToTagoio } from "./Request.ts";
import removeNullValues from "../../../../packages/sdk/src/Types/Helpers/removeNullValues.ts";

let events: EventSource | null = null;
const pingInterval = 240000;
Expand Down Expand Up @@ -111,7 +112,7 @@ async function emitStartData(token: string, connID: string) {
tcore_start_time: tcoreStartTime,
tcore_version: "0.7.0",
summary: data[0],
computer_usage: data[1],
computer_usage: removeNullValues(data[1]),
last_ping: Date.now(),
};
const response = await sendDataToTagoio(
Expand Down
3 changes: 2 additions & 1 deletion plugins/tagoio-integration/src/front/Auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import Otp from "./Otp/Otp.tsx";
import OtpPicker from "./OtpPicker/OtpPicker.tsx";
import Profiles from "./Profiles/Profiles.tsx";

const API_URL = process.env.TAGOIO_API;
// const API_URL = process.env.TAGOIO_API;
const API_URL = "https://api-tagocore.beta.tago.io";

/**
* Props.
Expand Down

0 comments on commit 34ad98e

Please sign in to comment.