From c73f1f36936317807f2389bb033d0956c9b8c9db Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 6 Feb 2024 16:06:10 +0000 Subject: [PATCH] Merge pull request #16944 from overleaf/jpa-fix-entity-creation [web] fix creation of missing user membership entities GitOrigin-RevId: 203d5e2bb5733479c53068543a04b58a6fa7d1a3 --- .../app/src/Features/UserMembership/UserMembershipHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/src/Features/UserMembership/UserMembershipHandler.js b/services/web/app/src/Features/UserMembership/UserMembershipHandler.js index 7e03545085..9f2c0342ad 100644 --- a/services/web/app/src/Features/UserMembership/UserMembershipHandler.js +++ b/services/web/app/src/Features/UserMembership/UserMembershipHandler.js @@ -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) {