Skip to content

Commit e8c6c50

Browse files
committed
change function name
1 parent ce2a147 commit e8c6c50

File tree

5 files changed

+20937
-90
lines changed

5 files changed

+20937
-90
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,23 +528,23 @@ let api = new ParseServer({
528528
### Notes <!-- omit in toc -->
529529
530530
- There are no additional steps needed to use this feature with MongoDB
531-
- For Postgres, you will need to create a cron job, use [pgAdmin](https://www.pgadmin.org/docs/pgadmin4/development/pgagent_jobs.html), or similar to call the Postgres function, `idempodency_delete_old_rows()`. For example, the cron job can call the script below (make sure the script has the same priveledges to log into Postgres as your Parse Server):
531+
- For Postgres, you will need to create a cron job using [pgAdmin](https://www.pgadmin.org/docs/pgadmin4/development/pgagent_jobs.html) or similar to call a Postgres function `idempotency_delete_expired_records()` that deletes expired idempotency records. You can find an example script below. Make sure the script has the same privileges to log into Postgres as Parse Server.
532532
533533
```bash
534534
#!/bin/bash
535535
536536
set -e
537537
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
538-
SELECT idempodency_delete_old_rows();
538+
SELECT idempotency_delete_expired_records();
539539
EOSQL
540540
541541
exec "$@"
542542
```
543543
544-
Assuming the script above is named, `parse_idempodency_delete_old_rows.sh`, a cron job that runs the script every 2 minutes may look like:
544+
Assuming the script above is named, `parse_idempotency_delete_expired_records.sh`, a cron job that runs the script every 2 minutes may look like:
545545
546546
```bash
547-
2 * * * * /root/parse_idempodency_delete_old_rows.sh >/dev/null 2>&1
547+
2 * * * * /root/parse_idempotency_delete_expired_records.sh >/dev/null 2>&1
548548
```
549549
550550
## Localization

0 commit comments

Comments
 (0)