Skip to content

Coming empty strings array in filter user api for skills and interest #200

@Mehul175

Description

@Mehul175

ref =https://github.com/wpeventmanager/wpem-organizer-app/issues/649
curl --location 'https://stg-myeventplatform-staging.kinsta.cloud/wp-json/wpem/filter-users'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczpcL1wvc3RnLW15ZXZlbnRwbGF0Zm9ybS1zdGFnaW5nLmtpbnN0YS5jbG91ZCIsInVzZXIiOnsiaWQiOjE3MywidXNlcm5hbWUiOiJNb2JpbGVUZXN0MyIsInBhc3N3b3JkIjoiTW9iaWxlVGVzdDMifX0.0-h7pifGqrjBSF5qPJaZlKh9s-JDhKabK_XXVsIAFpc'
--data '{
"user_id": 172,
"event_id": 27689,
"per_page":20,
"page":1

}'

            "skills": "a:1:{i:0;s:0:\"\";}",
            "interests": "a:1:{i:0;s:0:\"\";}",

it converts to this [""] because of this

it shows this in frontend

Image

{ "code": 200, "status": "OK", "message": "Users retrieved successfully.", "data": { "total_post_count": 2, "current_page": 1, "last_page": 1, "total_pages": 1, "users": [ { "user_id": 174, "display_name": "MobileTest4 MobileTest4", "first_name": "MobileTest4", "last_name": "MobileTest4", "email": "MobileTest4@gmail.com", "matchmaking_profile": "1", "profile_photo": "https://stg-myeventplatform-staging.kinsta.cloud/wp-content/uploads/2025/08/3B295888-7E4C-4140-A6B2-7C8E3A844E30.gif", "profession": "ai-ml-engineer", "experience": "1", "company_name": "MobileTest4", "country": "IN", "city": "MobileTest4", "about": "MobileTest4", "skills": "a:1:{i:0;s:8:\"adobe-xd\";}", "interests": "a:1:{i:0;s:19:\"ai-machine-learning\";}", "message_notification": "1", "organization_name": "MobileTest4", "organization_logo": "https://stg-myeventplatform-staging.kinsta.cloud/wp-content/uploads/event-manager-uploads/organization_logo/2025/08/default.png", "organization_country": "India", "organization_city": "MobileTest4", "organization_description": "MobileTest4", "organization_website": "", "available_for_meeting": "", "approve_profile_status": "1" }, { "user_id": 173, "display_name": "MobileTest3 MobileTest3", "first_name": "MobileTest3", "last_name": "MobileTest3", "email": "MobileTest3@gmail.com", "matchmaking_profile": "1", "profile_photo": "https://stg-myeventplatform-staging.kinsta.cloud/wp-content/uploads/event-manager-uploads/profile_photo/2025/08/pngtree-businessman-profile-vector-icon-on-white-background-png-image_7048571-1.png", "profession": "AI/ML Engineer", "experience": "1", "company_name": "MobileTest3", "country": "IN", "city": "MobileTest3", "about": "MobileTest3", "skills": "a:1:{i:0;s:0:\"\";}", "interests": "a:1:{i:0;s:0:\"\";}", "message_notification": "1", "organization_name": "MobileTest3", "organization_logo": "https://stg-myeventplatform-staging.kinsta.cloud/wp-content/uploads/event-manager-uploads/organization_logo/2025/08/default.png", "organization_country": "India", "organization_city": "MobileTest3", "organization_description": "MobileTest3", "organization_website": "", "available_for_meeting": "", "approve_profile_status": "1" } ] } }

Metadata

Metadata

Assignees

Labels

FixedFinal verified and tested by Tester

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions