Made Node.js send invites correctly