prevent primary key update in memberships api (#13083)

This commit is contained in:
Riddhesh Mahajan
2024-01-20 10:41:50 -03:00
committed by GitHub
parent 30b433397a
commit c6b50bfd14
+1
View File
@@ -30,6 +30,7 @@ export const membershipEditBodySchema = Membership.omit({
/** To avoid complication, let's avoid updating these, instead you can delete and create a new invite */
teamId: true,
userId: true,
id: true,
})
.partial({
accepted: true,