@quesmed/types 2.6.232 → 2.6.234
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.
|
@@ -215,6 +215,22 @@ const updateCacheOnConceptLearningStatusUpdate = (topicId, prevStatus, entitleme
|
|
|
215
215
|
data: { status },
|
|
216
216
|
fragment: STATUS_CONCEPT_FRAGMENT,
|
|
217
217
|
});
|
|
218
|
+
cache.writeFragment({
|
|
219
|
+
id: cache.identify({
|
|
220
|
+
id: id.toString(),
|
|
221
|
+
...(entitlement && {
|
|
222
|
+
entitlement: {
|
|
223
|
+
__ref: cache.identify({
|
|
224
|
+
id: entitlement,
|
|
225
|
+
__typename: 'Entitlement',
|
|
226
|
+
}),
|
|
227
|
+
},
|
|
228
|
+
}),
|
|
229
|
+
__typename: 'Concept',
|
|
230
|
+
}),
|
|
231
|
+
data: { status },
|
|
232
|
+
fragment: STATUS_CONCEPT_FRAGMENT,
|
|
233
|
+
});
|
|
218
234
|
});
|
|
219
235
|
const topicFragmentId = cache.identify({
|
|
220
236
|
id: topicId.toString(),
|
|
@@ -209,6 +209,22 @@ export const updateCacheOnConceptLearningStatusUpdate = (topicId, prevStatus, en
|
|
|
209
209
|
data: { status },
|
|
210
210
|
fragment: STATUS_CONCEPT_FRAGMENT,
|
|
211
211
|
});
|
|
212
|
+
cache.writeFragment({
|
|
213
|
+
id: cache.identify({
|
|
214
|
+
id: id.toString(),
|
|
215
|
+
...(entitlement && {
|
|
216
|
+
entitlement: {
|
|
217
|
+
__ref: cache.identify({
|
|
218
|
+
id: entitlement,
|
|
219
|
+
__typename: 'Entitlement',
|
|
220
|
+
}),
|
|
221
|
+
},
|
|
222
|
+
}),
|
|
223
|
+
__typename: 'Concept',
|
|
224
|
+
}),
|
|
225
|
+
data: { status },
|
|
226
|
+
fragment: STATUS_CONCEPT_FRAGMENT,
|
|
227
|
+
});
|
|
212
228
|
});
|
|
213
229
|
const topicFragmentId = cache.identify({
|
|
214
230
|
id: topicId.toString(),
|