remove content from job data

This commit is contained in:
Hongbo Wu
2024-03-26 16:49:26 +08:00
parent 247550a5d8
commit 37459f64c7

View File

@ -869,7 +869,11 @@ export const updateLibraryItem = async (
// send create event if the item was created
await pubsub.entityCreated<CreateItemEvent>(
EntityType.PAGE,
updatedLibraryItem,
{
...updatedLibraryItem,
originalContent: undefined,
readableContent: undefined,
},
userId,
id
)
@ -1043,7 +1047,11 @@ export const createOrUpdateLibraryItem = async (
await pubsub.entityCreated<CreateItemEvent>(
EntityType.PAGE,
newLibraryItem,
{
...newLibraryItem,
originalContent: undefined,
readableContent: undefined,
},
userId,
newLibraryItem.id
)