Refactor create_invite to use ? syntax
Missed file in last commit