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:
3
.github/workflows/run-tests.yaml
vendored
3
.github/workflows/run-tests.yaml
vendored
@ -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] }}
|
||||
|
||||
Reference in New Issue
Block a user