-- check_user_votes.lua
-- Check which categories a user has voted in
--
-- KEYS[1] = vote:user:{user_id}:categories
-- Returns: Set of category IDs the user has voted in

local user_categories_key = KEYS[1]

local categories = redis.call('SMEMBERS', user_categories_key)

return cjson.encode(categories)
