Fix user delete flow 2

This commit is contained in:
Urtzi Alfaro
2025-08-02 17:53:28 +02:00
parent fa9915f63d
commit 66716c054d
3 changed files with 5 additions and 18 deletions

View File

@@ -845,7 +845,8 @@ log_step "6.1. Getting deletion preview for test user"
# First, get a preview of what would be deleted
DELETION_PREVIEW_RESPONSE=$(curl -s -w "\nHTTP_CODE:%{http_code}" -X GET "$API_BASE/api/v1/users/delete/$USER_ID/deletion-preview" \
-H "Authorization: Bearer $ACCESS_TOKEN")
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json")
# Extract HTTP code and response
HTTP_CODE=$(echo "$DELETION_PREVIEW_RESPONSE" | grep "HTTP_CODE:" | cut -d: -f2)