diff --git a/scripts/create_invite.sh b/scripts/create_invite.sh index 73fcde8..f944014 100644 --- a/scripts/create_invite.sh +++ b/scripts/create_invite.sh @@ -15,10 +15,6 @@ CREATED_AT=$(date +"%Y-%m-%d %H:%M:%S") # Get the name of the PostgreSQL container from the docker-compose configuration POSTGRES_CONTAINER_NAME=$(docker compose ps -q postgres | xargs docker inspect --format '{{.Name}}' | sed 's/\///') - -docker exec -it "$POSTGRES_CONTAINER_NAME" psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -h localhost -p 5432 -c "\dt" - - # Connect to the Postgres container and insert the fake record into the app_invite table docker exec -i "$POSTGRES_CONTAINER_NAME" psql -v -U "$POSTGRES_USER" -d "$POSTGRES_DB" -h localhost -p 5432 -c " INSERT INTO app_invite (uuid, inviter_npub, created_at)