@amityco/ts-sdk 7.32.1-a3ee23ab.0 → 7.32.1-a88e5f5.0
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/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -28119,13 +28119,13 @@ const deleteComment = async (commentId, permanent = false) => {
|
|
|
28119
28119
|
permanent,
|
|
28120
28120
|
},
|
|
28121
28121
|
});
|
|
28122
|
-
// to support hard deletion
|
|
28123
|
-
const deleted = Object.assign(Object.assign({}, comment.data), { isDeleted: true
|
|
28122
|
+
// to support hard deletion
|
|
28123
|
+
const deleted = Object.assign(Object.assign({}, comment.data), { isDeleted: true });
|
|
28124
28124
|
if (permanent) {
|
|
28125
28125
|
scheduleTask(() => pushToTombstone('comment', commentId));
|
|
28126
28126
|
}
|
|
28127
28127
|
else {
|
|
28128
|
-
upsertInCache(['comment', 'get', commentId], { isDeleted: true
|
|
28128
|
+
upsertInCache(['comment', 'get', commentId], { isDeleted: true });
|
|
28129
28129
|
}
|
|
28130
28130
|
if (comment.data.referenceType === 'story') {
|
|
28131
28131
|
const story = await getStoryByStoryId$1(comment.data.referenceId);
|
package/dist/index.esm.js
CHANGED
|
@@ -28119,13 +28119,13 @@ const deleteComment = async (commentId, permanent = false) => {
|
|
|
28119
28119
|
permanent,
|
|
28120
28120
|
},
|
|
28121
28121
|
});
|
|
28122
|
-
// to support hard deletion
|
|
28123
|
-
const deleted = Object.assign(Object.assign({}, comment.data), { isDeleted: true
|
|
28122
|
+
// to support hard deletion
|
|
28123
|
+
const deleted = Object.assign(Object.assign({}, comment.data), { isDeleted: true });
|
|
28124
28124
|
if (permanent) {
|
|
28125
28125
|
scheduleTask(() => pushToTombstone('comment', commentId));
|
|
28126
28126
|
}
|
|
28127
28127
|
else {
|
|
28128
|
-
upsertInCache(['comment', 'get', commentId], { isDeleted: true
|
|
28128
|
+
upsertInCache(['comment', 'get', commentId], { isDeleted: true });
|
|
28129
28129
|
}
|
|
28130
28130
|
if (comment.data.referenceType === 'story') {
|
|
28131
28131
|
const story = await getStoryByStoryId$1(comment.data.referenceId);
|