#!/usr/bin/env bash set -euo pipefail ROOT="${1:?usage: ROLLBACK.sh }" SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)" cp "$SCRIPT_DIR/BASELINE_worker_query.ts" "$ROOT/apps/backend/src/repositories/worker-platform/work-order-query-repo.ts" cp "$SCRIPT_DIR/BASELINE_postgres_integration.test.ts" "$ROOT/apps/backend/src/db/postgres.integration.test.ts" printf 'restored worker query and PostgreSQL integration test baselines in %s\n' "$ROOT"