Adds the ability to launch a job that restores a database
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
(:gen-class)
|
||||
(:require
|
||||
[auto-ap.handler :refer [app]]
|
||||
[auto-ap.jobs.restore-from-backup :as job-restore-from-backup]
|
||||
[auto-ap.jobs.bulk-journal-import :as job-bulk-journal-import]
|
||||
[auto-ap.jobs.close-auto-invoices :as job-close-auto-invoices]
|
||||
[auto-ap.jobs.current-balance-cache :as job-current-balance-cache]
|
||||
@@ -136,6 +137,9 @@
|
||||
(= job "bulk-journal-import")
|
||||
(job-bulk-journal-import/-main)
|
||||
|
||||
(= job "restore-from-backup")
|
||||
(job-restore-from-backup/-main)
|
||||
|
||||
:else
|
||||
(do
|
||||
(add-shutdown-hook! shutdown-mount)
|
||||
|
||||
Reference in New Issue
Block a user