When GET /submissions enriches submissions with Ivanti API data, it now checks if batch.currentState (APPROVED, REJECTED, REWORK) differs from the local lifecycle_status and updates the DB accordingly. This ensures approved submissions get filtered out of the queue panel as intended. Also changed safeText() to return null for non-string Ivanti note values (arrays/objects) instead of JSON-stringifying them. The notes array filters nulls via .filter(Boolean) so non-string data is simply hidden.
48 KiB
48 KiB