I always intended to delete draft payments after some time. I follow WooCommerce’s default times: 1 day for draft and 1 hour for pending. No other reason than we are used to it. I added a cron job, rather than a systemd timer, because i want email notifications, and because i do not yet know how to add many service files in a Debian package.
8 lines
127 B
PL/PgSQL
8 lines
127 B
PL/PgSQL
-- Verify camper:flush_payments on pg
|
|
|
|
begin;
|
|
|
|
select has_function_privilege('camper.flush_payments()', 'execute');
|
|
|
|
rollback;
|