refactor chat delivery to graphql + hatchet services
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
CANONICAL_SCHEMA="$ROOT_DIR/frontend/prisma/schema.prisma"
|
||||
CANONICAL_SCHEMA="$ROOT_DIR/Frontend/prisma/schema.prisma"
|
||||
TARGETS=(
|
||||
"$ROOT_DIR/omni_chat/prisma/schema.prisma"
|
||||
"$ROOT_DIR/omni_outbound/prisma/schema.prisma"
|
||||
"$ROOT_DIR/backend/prisma/schema.prisma"
|
||||
)
|
||||
|
||||
if [[ ! -f "$CANONICAL_SCHEMA" ]]; then
|
||||
@@ -33,7 +32,7 @@ done
|
||||
# Enforce one rollout point for schema changes:
|
||||
# only frontend is allowed to run db push/migration commands.
|
||||
if rg -n "prisma (db push|migrate|migrate deploy|migrate dev)" \
|
||||
"$ROOT_DIR/omni_chat" "$ROOT_DIR/omni_outbound" \
|
||||
"$ROOT_DIR/backend" \
|
||||
--glob '!**/node_modules/**' \
|
||||
--glob '!**/package-lock.json' \
|
||||
--glob '!**/README.md' > /tmp/prisma_non_frontend_migrations.txt; then
|
||||
@@ -41,7 +40,7 @@ if rg -n "prisma (db push|migrate|migrate deploy|migrate dev)" \
|
||||
cat /tmp/prisma_non_frontend_migrations.txt >&2
|
||||
status=1
|
||||
else
|
||||
echo "[prisma-check] OK: no migration/db push commands in omni services"
|
||||
echo "[prisma-check] OK: no migration/db push commands in backend service"
|
||||
fi
|
||||
|
||||
if [[ "$status" -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user