Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr committed Feb 8, 2024
1 parent 67d6777 commit 6154829
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
6 changes: 2 additions & 4 deletions src/helpers/event/createEventHelpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import { createSingleEvent } from "./createSingleEvent";
import { createRecurringEvents } from "./createRecurringEvents";

export { createSingleEvent, createRecurringEvents };
export { createSingleEvent } from "./createSingleEvent";
export { createRecurringEvents } from "./createRecurringEvents";
15 changes: 4 additions & 11 deletions src/helpers/event/recurringEventHelpers/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import { generateRecurrenceRuleString } from "./generateRecurrenceRuleString";
import { getRecurringInstanceDates } from "./getRecurringInstanceDates";
import { createRecurrenceRule } from "./createRecurrenceRule";
import { generateRecurringEventInstances } from "./generateRecurringEventInstances";

export {
generateRecurrenceRuleString,
getRecurringInstanceDates,
createRecurrenceRule,
generateRecurringEventInstances,
};
export { generateRecurrenceRuleString } from "./generateRecurrenceRuleString";
export { getRecurringInstanceDates } from "./getRecurringInstanceDates";
export { createRecurrenceRule } from "./createRecurrenceRule";
export { generateRecurringEventInstances } from "./generateRecurringEventInstances";
2 changes: 0 additions & 2 deletions src/resolvers/Mutation/createEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,13 @@ export const createEvent: MutationResolvers["createEvent"] = async (
}

if (session) {
// commit transaction if everything's successful
await session.commitTransaction();
}

// Returns the createdEvent.
return createdEvent;
} catch (error) {
if (session) {
// abort transaction if something fails
await session.abortTransaction();
}
throw error;
Expand Down

0 comments on commit 6154829

Please sign in to comment.