Skip to content

Commit

Permalink
[TM-1531] remove logs and unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Dec 23, 2024
1 parent 1b73259 commit 4d9a28e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/connections/DelayedJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ const delayedJobsSelector = (store: ApiDataStore) =>

const delayedJobsLoadFailedSelector = (store: ApiDataStore) => listDelayedJobsFetchFailed(store) != null;

const delayedJobsIsLoaded = ({ delayedJobs, delayedJobsHasFailed, delayedJobsIsLoading }: DelayedJobsConnection) =>
const delayedJobsIsLoaded = ({ delayedJobs, delayedJobsHasFailed }: DelayedJobsConnection) =>
delayedJobs != null || delayedJobsHasFailed;

const delayedJobsConnection: Connection<DelayedJobsConnection> = {
load: connection => {
if (!delayedJobsIsLoaded(connection)) {
console.log("list call");
listDelayedJobs();
}
},
Expand All @@ -50,7 +49,6 @@ export const useDelayedJobs = () => {

useEffect(() => {
const intervalId = setInterval(() => {
console.log("This call");
listDelayedJobs();
}, 1500);

Expand Down Expand Up @@ -96,5 +94,4 @@ const bulkUpdateJobsConnection: Connection<BulkUpdateJobsConnection, { jobs: Del

export const useBulkUpdateJobs = connectionLoader(bulkUpdateJobsConnection);

// Function to trigger bulk update
export const triggerBulkUpdate = (jobs: DelayedJobData[]) => bulkUpdateJobs({ body: { data: jobs } });

0 comments on commit 4d9a28e

Please sign in to comment.