musora-content-services 1.2.5 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +5 -0
- package/.prettierrc +8 -0
- package/CHANGELOG.md +9 -0
- package/README.md +0 -0
- package/babel.config.cjs +1 -1
- package/jest.config.js +9 -10
- package/jsdoc.json +17 -12
- package/package.json +2 -1
- package/src/contentMetaData.js +1190 -1131
- package/src/contentTypeConfig.js +492 -387
- package/src/filterBuilder.js +163 -145
- package/src/index.d.ts +227 -237
- package/src/index.js +226 -236
- package/src/services/config.js +12 -12
- package/src/services/contentLikes.js +33 -32
- package/src/services/contentProgress.js +233 -200
- package/src/services/dataContext.js +99 -93
- package/src/services/lastUpdated.js +7 -7
- package/src/services/railcontent.js +368 -364
- package/src/services/sanity.js +975 -955
- package/src/services/userPermissions.js +12 -14
- package/test/contentLikes.test.js +89 -86
- package/test/contentProgress.test.js +229 -236
- package/test/initializeTests.js +54 -51
- package/test/lastUpdated.test.js +20 -18
- package/test/live/contentProgressLive.test.js +135 -137
- package/test/live/railcontentLive.test.js +12 -14
- package/test/localStorageMock.js +16 -16
- package/test/log.js +5 -5
- package/test/sanityQueryService.test.js +857 -821
- package/test/userPermissions.test.js +15 -15
- package/tools/generate-index.cjs +108 -111
package/src/index.js
CHANGED
|
@@ -1,248 +1,238 @@
|
|
|
1
1
|
/*** This file was generated automatically. To recreate, please run `npm run build-index`. ***/
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
globalConfig,
|
|
5
|
-
initializeService
|
|
6
|
-
} from './services/config.js';
|
|
3
|
+
import { globalConfig, initializeService } from './services/config.js'
|
|
7
4
|
|
|
8
|
-
import {
|
|
9
|
-
isContentLiked,
|
|
10
|
-
likeContent,
|
|
11
|
-
unlikeContent
|
|
12
|
-
} from './services/contentLikes.js';
|
|
5
|
+
import { isContentLiked, likeContent, unlikeContent } from './services/contentLikes.js'
|
|
13
6
|
|
|
14
7
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from './services/contentProgress.js'
|
|
8
|
+
assignmentStatusCompleted,
|
|
9
|
+
assignmentStatusReset,
|
|
10
|
+
contentStatusCompleted,
|
|
11
|
+
contentStatusReset,
|
|
12
|
+
getAllCompleted,
|
|
13
|
+
getAllStarted,
|
|
14
|
+
getAllStartedOrCompleted,
|
|
15
|
+
getProgressPercentage,
|
|
16
|
+
getProgressPercentageByIds,
|
|
17
|
+
getProgressState,
|
|
18
|
+
getProgressStateByIds,
|
|
19
|
+
getResumeTimeSeconds,
|
|
20
|
+
recordWatchSession,
|
|
21
|
+
} from './services/contentProgress.js'
|
|
29
22
|
|
|
30
23
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} from './services/railcontent.js'
|
|
24
|
+
addItemToPlaylist,
|
|
25
|
+
countAssignmentsAndLessons,
|
|
26
|
+
createPlaylist,
|
|
27
|
+
deletePlaylist,
|
|
28
|
+
deletePlaylistItem,
|
|
29
|
+
deletePlaylistLike,
|
|
30
|
+
duplicatePlaylist,
|
|
31
|
+
fetchAllCompletedStates,
|
|
32
|
+
fetchCarouselCardData,
|
|
33
|
+
fetchChallengeIndexMetadata,
|
|
34
|
+
fetchChallengeLessonData,
|
|
35
|
+
fetchChallengeMetadata,
|
|
36
|
+
fetchChallengeUserActiveChallenges,
|
|
37
|
+
fetchCompletedChallenges,
|
|
38
|
+
fetchCompletedContent,
|
|
39
|
+
fetchCompletedState,
|
|
40
|
+
fetchContentInProgress,
|
|
41
|
+
fetchContentPageUserData,
|
|
42
|
+
fetchContentProgress,
|
|
43
|
+
fetchHandler,
|
|
44
|
+
fetchNextContentDataForParent,
|
|
45
|
+
fetchOwnedChallenges,
|
|
46
|
+
fetchPinnedPlaylists,
|
|
47
|
+
fetchPlaylist,
|
|
48
|
+
fetchPlaylistItem,
|
|
49
|
+
fetchPlaylistItems,
|
|
50
|
+
fetchSongsInProgress,
|
|
51
|
+
fetchUserAward,
|
|
52
|
+
fetchUserBadges,
|
|
53
|
+
fetchUserChallengeProgress,
|
|
54
|
+
fetchUserLikes,
|
|
55
|
+
fetchUserPermissionsData,
|
|
56
|
+
fetchUserPlaylists,
|
|
57
|
+
likePlaylist,
|
|
58
|
+
pinPlaylist,
|
|
59
|
+
playback,
|
|
60
|
+
postChallengesCommunityNotification,
|
|
61
|
+
postChallengesCompleteLesson,
|
|
62
|
+
postChallengesEnroll,
|
|
63
|
+
postChallengesEnrollmentNotification,
|
|
64
|
+
postChallengesHideCompletedBanner,
|
|
65
|
+
postChallengesLeave,
|
|
66
|
+
postChallengesSetStartDate,
|
|
67
|
+
postChallengesSoloNotification,
|
|
68
|
+
postChallengesUnlock,
|
|
69
|
+
postContentCompleted,
|
|
70
|
+
postContentLiked,
|
|
71
|
+
postContentReset,
|
|
72
|
+
postContentUnliked,
|
|
73
|
+
postRecordWatchSession,
|
|
74
|
+
reportPlaylist,
|
|
75
|
+
setStudentViewForUser,
|
|
76
|
+
unpinPlaylist,
|
|
77
|
+
updatePlaylist,
|
|
78
|
+
updatePlaylistItem,
|
|
79
|
+
} from './services/railcontent.js'
|
|
87
80
|
|
|
88
81
|
import {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} from './services/sanity.js'
|
|
82
|
+
fetchAll,
|
|
83
|
+
fetchAllFilterOptions,
|
|
84
|
+
fetchAllPacks,
|
|
85
|
+
fetchArtistLessons,
|
|
86
|
+
fetchArtists,
|
|
87
|
+
fetchByRailContentId,
|
|
88
|
+
fetchByRailContentIds,
|
|
89
|
+
fetchByReference,
|
|
90
|
+
fetchChatAndLiveEnvent,
|
|
91
|
+
fetchCoachLessons,
|
|
92
|
+
fetchCommentModContentData,
|
|
93
|
+
fetchFoundation,
|
|
94
|
+
fetchGenreLessons,
|
|
95
|
+
fetchHierarchy,
|
|
96
|
+
fetchLessonContent,
|
|
97
|
+
fetchLiveEvent,
|
|
98
|
+
fetchMetadata,
|
|
99
|
+
fetchMethod,
|
|
100
|
+
fetchMethodChildren,
|
|
101
|
+
fetchMethodChildrenIds,
|
|
102
|
+
fetchMethodPreviousNextLesson,
|
|
103
|
+
fetchNewReleases,
|
|
104
|
+
fetchNextPreviousLesson,
|
|
105
|
+
fetchPackAll,
|
|
106
|
+
fetchPackData,
|
|
107
|
+
fetchParentForDownload,
|
|
108
|
+
fetchPlayAlongsCount,
|
|
109
|
+
fetchRelatedLessons,
|
|
110
|
+
fetchRelatedSongs,
|
|
111
|
+
fetchSanity,
|
|
112
|
+
fetchScheduledReleases,
|
|
113
|
+
fetchShowsData,
|
|
114
|
+
fetchSongArtistCount,
|
|
115
|
+
fetchSongById,
|
|
116
|
+
fetchTopLevelParentId,
|
|
117
|
+
fetchUpcomingEvents,
|
|
118
|
+
getSortOrder,
|
|
119
|
+
jumpToContinueContent,
|
|
120
|
+
} from './services/sanity.js'
|
|
128
121
|
|
|
129
|
-
import {
|
|
130
|
-
fetchUserPermissions,
|
|
131
|
-
reset
|
|
132
|
-
} from './services/userPermissions.js';
|
|
122
|
+
import { fetchUserPermissions, reset } from './services/userPermissions.js'
|
|
133
123
|
|
|
134
124
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
125
|
+
addItemToPlaylist,
|
|
126
|
+
assignmentStatusCompleted,
|
|
127
|
+
assignmentStatusReset,
|
|
128
|
+
contentStatusCompleted,
|
|
129
|
+
contentStatusReset,
|
|
130
|
+
countAssignmentsAndLessons,
|
|
131
|
+
createPlaylist,
|
|
132
|
+
deletePlaylist,
|
|
133
|
+
deletePlaylistItem,
|
|
134
|
+
deletePlaylistLike,
|
|
135
|
+
duplicatePlaylist,
|
|
136
|
+
fetchAll,
|
|
137
|
+
fetchAllCompletedStates,
|
|
138
|
+
fetchAllFilterOptions,
|
|
139
|
+
fetchAllPacks,
|
|
140
|
+
fetchArtistLessons,
|
|
141
|
+
fetchArtists,
|
|
142
|
+
fetchByRailContentId,
|
|
143
|
+
fetchByRailContentIds,
|
|
144
|
+
fetchByReference,
|
|
145
|
+
fetchCarouselCardData,
|
|
146
|
+
fetchChallengeIndexMetadata,
|
|
147
|
+
fetchChallengeLessonData,
|
|
148
|
+
fetchChallengeMetadata,
|
|
149
|
+
fetchChallengeUserActiveChallenges,
|
|
150
|
+
fetchChatAndLiveEnvent,
|
|
151
|
+
fetchCoachLessons,
|
|
152
|
+
fetchCommentModContentData,
|
|
153
|
+
fetchCompletedChallenges,
|
|
154
|
+
fetchCompletedContent,
|
|
155
|
+
fetchCompletedState,
|
|
156
|
+
fetchContentInProgress,
|
|
157
|
+
fetchContentPageUserData,
|
|
158
|
+
fetchContentProgress,
|
|
159
|
+
fetchFoundation,
|
|
160
|
+
fetchGenreLessons,
|
|
161
|
+
fetchHandler,
|
|
162
|
+
fetchHierarchy,
|
|
163
|
+
fetchLessonContent,
|
|
164
|
+
fetchLiveEvent,
|
|
165
|
+
fetchMetadata,
|
|
166
|
+
fetchMethod,
|
|
167
|
+
fetchMethodChildren,
|
|
168
|
+
fetchMethodChildrenIds,
|
|
169
|
+
fetchMethodPreviousNextLesson,
|
|
170
|
+
fetchNewReleases,
|
|
171
|
+
fetchNextContentDataForParent,
|
|
172
|
+
fetchNextPreviousLesson,
|
|
173
|
+
fetchOwnedChallenges,
|
|
174
|
+
fetchPackAll,
|
|
175
|
+
fetchPackData,
|
|
176
|
+
fetchParentForDownload,
|
|
177
|
+
fetchPinnedPlaylists,
|
|
178
|
+
fetchPlayAlongsCount,
|
|
179
|
+
fetchPlaylist,
|
|
180
|
+
fetchPlaylistItem,
|
|
181
|
+
fetchPlaylistItems,
|
|
182
|
+
fetchRelatedLessons,
|
|
183
|
+
fetchRelatedSongs,
|
|
184
|
+
fetchSanity,
|
|
185
|
+
fetchScheduledReleases,
|
|
186
|
+
fetchShowsData,
|
|
187
|
+
fetchSongArtistCount,
|
|
188
|
+
fetchSongById,
|
|
189
|
+
fetchSongsInProgress,
|
|
190
|
+
fetchTopLevelParentId,
|
|
191
|
+
fetchUpcomingEvents,
|
|
192
|
+
fetchUserAward,
|
|
193
|
+
fetchUserBadges,
|
|
194
|
+
fetchUserChallengeProgress,
|
|
195
|
+
fetchUserLikes,
|
|
196
|
+
fetchUserPermissions,
|
|
197
|
+
fetchUserPermissionsData,
|
|
198
|
+
fetchUserPlaylists,
|
|
199
|
+
getAllCompleted,
|
|
200
|
+
getAllStarted,
|
|
201
|
+
getAllStartedOrCompleted,
|
|
202
|
+
getProgressPercentage,
|
|
203
|
+
getProgressPercentageByIds,
|
|
204
|
+
getProgressState,
|
|
205
|
+
getProgressStateByIds,
|
|
206
|
+
getResumeTimeSeconds,
|
|
207
|
+
getSortOrder,
|
|
208
|
+
globalConfig,
|
|
209
|
+
initializeService,
|
|
210
|
+
isContentLiked,
|
|
211
|
+
jumpToContinueContent,
|
|
212
|
+
likeContent,
|
|
213
|
+
likePlaylist,
|
|
214
|
+
pinPlaylist,
|
|
215
|
+
playback,
|
|
216
|
+
postChallengesCommunityNotification,
|
|
217
|
+
postChallengesCompleteLesson,
|
|
218
|
+
postChallengesEnroll,
|
|
219
|
+
postChallengesEnrollmentNotification,
|
|
220
|
+
postChallengesHideCompletedBanner,
|
|
221
|
+
postChallengesLeave,
|
|
222
|
+
postChallengesSetStartDate,
|
|
223
|
+
postChallengesSoloNotification,
|
|
224
|
+
postChallengesUnlock,
|
|
225
|
+
postContentCompleted,
|
|
226
|
+
postContentLiked,
|
|
227
|
+
postContentReset,
|
|
228
|
+
postContentUnliked,
|
|
229
|
+
postRecordWatchSession,
|
|
230
|
+
recordWatchSession,
|
|
231
|
+
reportPlaylist,
|
|
232
|
+
reset,
|
|
233
|
+
setStudentViewForUser,
|
|
234
|
+
unlikeContent,
|
|
235
|
+
unpinPlaylist,
|
|
236
|
+
updatePlaylist,
|
|
237
|
+
updatePlaylistItem,
|
|
238
|
+
}
|
package/src/services/config.js
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export let globalConfig = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
6
|
+
sanityConfig: {},
|
|
7
|
+
railcontentConfig: {},
|
|
8
|
+
localStorage: null,
|
|
9
|
+
isMA: false,
|
|
10
|
+
localTimezoneString: null, // In format: America/Vancouver
|
|
11
|
+
}
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Exported functions that are excluded from index generation.
|
|
15
15
|
*
|
|
16
16
|
* @type {string[]}
|
|
17
17
|
*/
|
|
18
|
-
const excludeFromGeneratedIndex = []
|
|
18
|
+
const excludeFromGeneratedIndex = []
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Initializes the service with the given configuration.
|
|
@@ -61,9 +61,9 @@ const excludeFromGeneratedIndex = [];
|
|
|
61
61
|
* });
|
|
62
62
|
*/
|
|
63
63
|
export function initializeService(config) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
globalConfig.sanityConfig = config.sanityConfig
|
|
65
|
+
globalConfig.railcontentConfig = config.railcontentConfig
|
|
66
|
+
globalConfig.localStorage = config.localStorage
|
|
67
|
+
globalConfig.isMA = config.isMA || false
|
|
68
|
+
globalConfig.localTimezoneString = config.localTimezoneString || null
|
|
69
69
|
}
|
|
@@ -1,48 +1,49 @@
|
|
|
1
|
-
import {fetchUserLikes, postContentLiked, postContentUnliked} from
|
|
2
|
-
import {DataContext, ContentLikesVersionKey} from
|
|
1
|
+
import { fetchUserLikes, postContentLiked, postContentUnliked } from './railcontent.js'
|
|
2
|
+
import { DataContext, ContentLikesVersionKey } from './dataContext.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Exported functions that are excluded from index generation.
|
|
6
6
|
*
|
|
7
7
|
* @type {string[]}
|
|
8
8
|
*/
|
|
9
|
-
const excludeFromGeneratedIndex = []
|
|
9
|
+
const excludeFromGeneratedIndex = []
|
|
10
10
|
|
|
11
|
-
export let dataContext = new DataContext(ContentLikesVersionKey, fetchUserLikes)
|
|
11
|
+
export let dataContext = new DataContext(ContentLikesVersionKey, fetchUserLikes)
|
|
12
12
|
|
|
13
13
|
export async function isContentLiked(contentId) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
contentId = parseInt(contentId)
|
|
15
|
+
let data = await dataContext.getData()
|
|
16
|
+
return data.includes(contentId)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export async function likeContent(contentId) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
contentId = parseInt(contentId)
|
|
21
|
+
await dataContext.update(
|
|
22
|
+
function (localContext) {
|
|
23
|
+
if (!localContext.data.includes(contentId)) {
|
|
24
|
+
localContext.data.push(contentId)
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
async function () {
|
|
28
|
+
return postContentLiked(contentId)
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export async function unlikeContent(contentId) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
async function () {
|
|
45
|
-
return postContentUnliked(contentId);
|
|
34
|
+
contentId = parseInt(contentId)
|
|
35
|
+
await dataContext.update(
|
|
36
|
+
function (localContext) {
|
|
37
|
+
if (localContext.data.includes(contentId)) {
|
|
38
|
+
const index = localContext.data.indexOf(contentId)
|
|
39
|
+
if (index > -1) {
|
|
40
|
+
// only splice array when item is found
|
|
41
|
+
localContext.data.splice(index, 1) // 2nd parameter means remove one item only
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
async function () {
|
|
46
|
+
return postContentUnliked(contentId)
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
}
|