Skip to content

Commit 48b22a3

Browse files
committed
🐛 fix(recurring-events): copilot fixed
1 parent f478413 commit 48b22a3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/backend/src/sync/services/sync/compass.sync.processor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ export class CompassSyncProcessor {
122122

123123
logger.info(`Handle Compass event(${eventId}): ${transition}`);
124124

125-
console.log(transition, "transition");
126-
127125
switch (transition) {
128126
case "NIL->>STANDALONE_SOMEDAY_CONFIRMED":
129127
case "NIL->>RECURRENCE_BASE_SOMEDAY_CONFIRMED":

packages/web/src/ducks/events/sagas/someday.sagas.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ export function* convertSomedayToCalendarEvent({
3333
try {
3434
const gridEvent = yield* _assembleGridEvent(payload.event);
3535

36-
delete gridEvent.recurrence;
37-
3836
optimisticEvent = yield* _createOptimisticGridEvent(gridEvent);
3937

4038
yield* _editEvent(gridEvent);
@@ -47,7 +45,7 @@ export function* convertSomedayToCalendarEvent({
4745
);
4846
}
4947

50-
yield put(getSomedayEventsSlice.actions.insert(payload.event._id!));
48+
yield put(getSomedayEventsSlice.actions.insert(payload.event._id));
5149
yield put(editEventSlice.actions.error());
5250

5351
handleError(error as Error);

0 commit comments

Comments
 (0)