Invite to workspace button in the invitation email should be idempotent. Currently, it created multiple memberAdded type billing events, so the following scenario is possible.
Alice invites Bob to a workspace. Bob clicks the invite email to access the workspace every time and does so 5 times. There are now 6 users counted against this workspace in place of 2 and causes wrong billing computation.
Invite to workspace button in the invitation email should be idempotent. Currently, it created multiple
memberAdded
type billing events, so the following scenario is possible.Alice invites Bob to a workspace. Bob clicks the invite email to access the workspace every time and does so 5 times. There are now 6 users counted against this workspace in place of 2 and causes wrong billing computation.