Merge pull request #3014 from omnivore-app/feature/delete-user-cron

feat: create an api for the cronjob trigger which cleans up the soft deleted users
This commit is contained in:
Hongbo Wu
2023-10-25 21:10:03 +08:00
committed by GitHub
11 changed files with 223 additions and 5 deletions

View File

@ -65,8 +65,9 @@ jobs:
yarn install --frozen-lockfile
- name: Database Migration
run: |
psql -h localhost -p ${{ job.services.postgres.ports[5432] }} -U postgres -c "CREATE USER app_user WITH ENCRYPTED PASSWORD 'app_pass';"
yarn workspace @omnivore/db migrate
psql -h localhost -p ${{ job.services.postgres.ports[5432] }} -U postgres -c "CREATE USER app_user WITH ENCRYPTED PASSWORD 'app_pass';GRANT omnivore_user to app_user;"
psql -h localhost -p ${{ job.services.postgres.ports[5432] }} -U postgres -c "GRANT omnivore_user to app_user;"
env:
PG_HOST: localhost
PG_PORT: ${{ job.services.postgres.ports[5432] }}