accept
Group
Invitation
@Modifying(clearAutomatically = true
)
@Query(value = ""UPDATE " + GROUP_MEMBERS_TABLE + " SET " + INVITATION_STATUS_KEY + "=" + "'JOINED'"
+ " WHERE " + GROUP_MEMBER_KEY + "=:" + GROUP_MEMBER_KEY
+ " AND " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query to accept a group invitation
Parameters
memberId
: the member identifier
groupId
: the group identifier