mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 11:48:29 +02:00
✨ Allow connect to read-only databases.
This commit is contained in:
parent
f72e140327
commit
bc2a0432b9
8 changed files with 216 additions and 135 deletions
|
@ -28,9 +28,10 @@
|
|||
|
||||
(defn- persist-on-database!
|
||||
[{:keys [pool] :as cfg} {:keys [id] :as event}]
|
||||
(db/with-atomic [conn pool]
|
||||
(db/insert! conn :server-error-report
|
||||
{:id id :content (db/tjson event)})))
|
||||
(when-not (db/read-only? pool)
|
||||
(db/with-atomic [conn pool]
|
||||
(db/insert! conn :server-error-report
|
||||
{:id id :content (db/tjson event)}))))
|
||||
|
||||
(defn- parse-event-data
|
||||
[event]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue