Fixed getInvitation error in backend@