nxtgauge-backend-rust/apps/users/src
Ashwin Kumar Sivakumar b5dea58ed4 fix: customer document submission and profile verification
customer_profiles already had custom_data but never got a `status`
column, so — same root cause already fixed for job_seeker_profiles —
the generic profile save/get/submit handlers failed outright for the
CUSTOMER role, and the admin final-approval path couldn't write a
verified status either.

- Migration: add customer_profiles.status (default 'DRAFT').
- Special-case CUSTOMER in the generic profile.rs handlers (get_profile,
  save_profile, fetch_saved_profile, set_profile_status), mirroring the
  existing JOB_SEEKER special-case, storing basic-tab fields under
  custom_data.basic_info.
- Re-enable the CUSTOMER branch in activate_profile_after_final_approval
  now that the status column exists.
- Add the missing POST /api/customers/profile/documents upload endpoint
  — the frontend's document upload (required: Aadhar/Government ID)
  targets this exact path for CUSTOMER and previously 404'd since no
  such route was ever registered. Mirrors the B2-upload-only pattern
  used by the profession apps' shared upload_document handler.

Verified separately: requirement posting (POST /api/customers/requirements)
and requirement submission-for-verification (POST
/api/customers/requirements/:id/submit) already work correctly — both
use the `leads` table (an active migration, despite the model's
"Requirement" naming) and properly create a verification record
(case_type REQUIREMENT_APPROVAL) that lands in admin Verification
Management via the existing approve_requirement/reject_requirement
handlers. No changes needed there.
2026-07-21 01:39:25 +05:30
..
ai Issue each account its own LiteLLM virtual key instead of the shared master key 2026-07-16 20:29:00 +05:30
clients feat: Add Ask Ash AI credit system endpoints 2026-05-29 20:53:51 +05:30
handlers fix: customer document submission and profile verification 2026-07-21 01:39:25 +05:30
ai_credits.rs fix: resolve all warnings and errors 2026-07-06 03:00:37 +05:30
ai_subscription.rs feat: Complete Ask Ash AI Credits implementation on high-performance branch (Tasks 1-10) 2026-07-06 01:49:16 +05:30
litellm.rs Increase LiteLLM request timeout from 60s to 180s 2026-07-18 14:23:04 +02:00
mail.rs feat(phase1): wire email notifications, shared email crate, AppState for services 2026-04-02 01:42:48 +02:00
main.rs feat: human-readable reference numbers + fix verification document visibility 2026-07-19 16:34:00 +05:30