Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Select inserted_at from il.person_requests of this preperson merge request

  2. Compare user_id belongs to the same legal_entity_id where the preperson merge request was created.

    1. If not match - return 422 error (User doesn’t belong to legal entity where the preperson merge request was created)

Update object in DB

mpi.personmerge_requeststable

Parameter

Source

Description

status

Request: status

Status of the request, required. Set REJECTED

updated_by

uuid

Extract user from token

updated_at

timestamp

Get current date-time