Merge pull request #16944 from overleaf/jpa-fix-entity-creation

[web] fix creation of missing user membership entities

GitOrigin-RevId: 203d5e2bb5733479c53068543a04b58a6fa7d1a3
This commit is contained in:
Jakob Ackermann 2024-02-06 16:06:10 +00:00 committed by Copybot
parent 06ab04f023
commit c73f1f3693

View file

@ -21,7 +21,7 @@ const UserMembershipHandler = {
async createEntity(entityId, entityConfig) {
const data = buildEntityQuery(entityId, entityConfig)
return await EntityModels[entityConfig.modelName].create(data).exec()
return await EntityModels[entityConfig.modelName].create(data)
},
async getUsers(entity, entityConfig) {