diff --git a/src/server/routes/entity/entity.tsx b/src/server/routes/entity/entity.tsx index 120afcde0..9d45f7ec4 100644 --- a/src/server/routes/entity/entity.tsx +++ b/src/server/routes/entity/entity.tsx @@ -1054,7 +1054,7 @@ export async function indexAutoCreatedEditionGroup(orm, newEdition, transacting) transacting, withRelated: 'aliasSet.aliases' }); - await search.indexEntity(editionGroup.toJSON({omitPivot: true})); + await search.indexEntity(editionGroup); } catch (err) { log.error('Could not reindex edition group after edition creation:', err);