Skip to content

Commit cafdd2a

Browse files
e11syslaveeksgithub-actions[bot]
authored
imp(): improved project resolver with dailyEvents (#519)
* imp(): improved project resolver with dailyEvents * merging repetitions on api side * fix lint * Bump version up to 1.1.31 * Bump version up to 1.1.31 * Bump version up to 1.1.33 * revert some types changes * fix lint * fix docs * fixes * fix get repetitions by repetition * chore(): type defs * review changes * fixes * fixes * fixes test * fix * imp(): type defs * Bump version up to 1.1.34 * fix(): fix visitedBy issue * chore(): clean up * chore(): clean up * imp(): naming and descriptions * imp(): pass original event id to getEventRepetitions * chore(): lint fix * review cghanges * test addons merhing * fix test * imp(): throw exceptions * imp(): get rid of event id in repetitionsPortion * chore(): clean up * chore(): lint fix * imp(): daily events cursor types * fix original event without repetition in project overview * Revert "fix original event without repetition in project overview" This reverts commit d3d61a0. * unwnd * imp(): rename * imp(): remove redundant db calls --------- Co-authored-by: slaveeks <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Vyacheslav Chernyshev <[email protected]>
1 parent 9a1faca commit cafdd2a

File tree

9 files changed

+523
-264
lines changed

9 files changed

+523
-264
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.1.33",
3+
"version": "1.1.34",
44
"main": "index.ts",
55
"license": "UNLICENSED",
66
"scripts": {

src/models/event.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@
3838
/**
3939
* @typedef {Object} EventSchema
4040
* @property {String} _id - event ID
41-
* @property {String} catcherType - type of an event
42-
* @property {Number} count - event repetitions count
4341
* @property {String} groupHash - event's hash (catcherType + title + salt)
44-
* @property {User[]} visitedBy - array of users who visited this event
42+
* @property {Number} totalCount - event repetitions count
43+
* @property {String} catcherType - type of an event
4544
* @property {EventPayload} payload - event's payload
4645
* @property {Number} timestamp - event's Unix timestamp
46+
* @property {Number} usersAffected - number of users that were affected by the event
47+
* @property {User[]} visitedBy - array of users who visited this event
4748
*/
4849

4950
/**

0 commit comments

Comments
 (0)