Fix tests

This commit is contained in:
2026-03-02 19:57:44 +00:00
parent dd097c1022
commit 74b6f039c0
6 changed files with 78 additions and 41 deletions
+3
View File
@@ -263,6 +263,9 @@ if api_post "$BASE_URL/register" "{\"firstName\":\"Oscar\",\"lastName\":\"Hughes
# Promote Admin
docker exec postgres psql -U myuser -d mydb -c "UPDATE users SET account_role = 'admin' WHERE email = '$ADMIN_EMAIL'" > /dev/null 2>&1
# Set deposits_required=0 for all users (so they can confirm bookings without deposit issues)
docker exec postgres psql -U myuser -d mydb -c "UPDATE users SET deposits_required = 0" > /dev/null 2>&1
echo "${C_GREEN}✅ Registered $success/$total Users${C_RESET}"
# 2. Login