Skip to content

Commit 1b1d83d

Browse files
committed
fixes
1 parent c6dfb77 commit 1b1d83d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models/eventsFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ class EventsFactory extends Factory {
645645
/**
646646
* If originalEventId equals repetitionId than user wants to get first repetition which is original event
647647
*/
648-
if (repetitionId === originalEventId) {
648+
if (repetitionId.toString() === originalEventId.toString()) {
649649
const originalEvent = await this.eventsDataLoader.load(originalEventId);
650650

651651
/**

src/resolvers/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = {
9797
* @param {string} originalEventId - original event id
9898
* @returns {Promise<string>} AI suggestion for the event
9999
*/
100-
async aiSuggestion({ projectId, id: eventId, originalEventId }, _args, context) {
100+
async aiSuggestion({ projectId, _id: eventId, originalEventId }, _args, context) {
101101
const factory = getEventsFactory(context, projectId);
102102

103103
return factory.aiSuggestion(eventId, originalEventId);

0 commit comments

Comments
 (0)