Skip to content

Commit

Permalink
Temporarily increate trajectories cache time until we sort it out
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv committed Sep 23, 2024
1 parent 426cb57 commit 02d7641
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ export class DrilledWellTrajectoriesLayer implements Layer<DrilledWellTrajectori
}

const queryKey = ["getWellTrajectories", fieldIdentifier];
console.log(queryKey);

Check failure on line 90 in frontend/src/modules/2DViewer/layers/implementations/layers/DrilledWellTrajectoriesLayer/DrilledWellTrajectoriesLayer.ts

View workflow job for this annotation

GitHub Actions / frontend

Unexpected console statement
this._layerDelegate.registerQueryKey(queryKey);

const promise = queryClient
.fetchQuery({
queryKey,
queryFn: () => apiService.well.getFieldWellTrajectories(fieldIdentifier ?? ""),
staleTime: STALE_TIME,
gcTime: CACHE_TIME,
staleTime: 1800000, // TODO
gcTime: 1800000,
})
.then((response: WellboreTrajectory_api[]) => {
return response.filter((trajectory) => selectedWellboreUuids.includes(trajectory.wellboreUuid));
Expand Down

0 comments on commit 02d7641

Please sign in to comment.