Skip to content

Commit 6ea6a9c

Browse files
committed
feat: new diff
1 parent 63b6f03 commit 6ea6a9c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/models/eventsFactory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class EventsFactory extends Factory {
100100

101101
const cursor = this.getCollection(this.TYPES.EVENTS)
102102
.find(query)
103-
.sort([ ['_id', -1] ])
103+
.sort([['_id', -1]])
104104
.limit(limit)
105105
.skip(skip);
106106

@@ -211,7 +211,7 @@ class EventsFactory extends Factory {
211211
...Object.fromEntries(
212212
Object
213213
.entries(filters)
214-
.map(([mark, exists]) => [`event.marks.${mark}`, { $exists: exists } ])
214+
.map(([mark, exists]) => [`event.marks.${mark}`, { $exists: exists }])
215215
),
216216
},
217217
},
@@ -414,7 +414,7 @@ class EventsFactory extends Factory {
414414
const firstRepetition = {
415415
_id: eventOriginal._id,
416416
payload: eventOriginal.payload,
417-
groupHash: eventOriginal.groupHash,
417+
groupHash: eventOriginal.groupHash
418418
};
419419

420420
repetitions.push(firstRepetition);

src/typeDefs/event.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ type RepetitionPayload {
247247
}
248248
249249
"""
250-
Event's repetitions. Make Event unique by repetition's payload
250+
Repetition of the event
251251
"""
252252
type Repetition {
253253
"""
@@ -263,7 +263,12 @@ type Repetition {
263263
"""
264264
Event's payload patch
265265
"""
266-
payload: RepetitionPayload!
266+
payload: RepetitionPayload
267+
268+
"""
269+
Delta of the event's payload, stringified JSON
270+
"""
271+
delta: String
267272
}
268273
269274
"""

0 commit comments

Comments
 (0)