async getInvitationInfo (code) {
    const result = await db('invitations').where('code', code).select('*').first()

    return result
  }
Get invitation info

@param {String} code invitation code

@returns {Object} invitation info