Skip to content

Commit

Permalink
refactor: revise logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Jul 14, 2023
1 parent c141711 commit ff47e5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/server/src/services/rundown-service/RundownService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,7 @@ export async function reorderEvent(eventId: string, from: number, to: number) {

updateTimer();

// TODO: only calculate delays if moved is block or delay
let delayedRundown = calculateRuntimeDelaysFrom(eventId, rundown);
delayedRundown = calculateRuntimeDelaysFrom(rundown[indexFrom].id, rundown);
const delayedRundown = calculateRuntimeDelaysFrom(eventId, rundown);
runtimeCacheStore.setCached(delayedRundownCacheKey, delayedRundown);

sendRefetch();
Expand Down

0 comments on commit ff47e5f

Please sign in to comment.