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 )
abstract fun acceptGroupInvitation(@Param(value = "id") memberId: String, @Param(value = "group_member") groupId: String)

Method to execute the query to accept a group invitation

Parameters

memberId

: the member identifier

groupId

: the group identifier