mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 13:29:07 +00:00
✨ Add logging for management update-customer method
This commit is contained in:
parent
5fed5fa158
commit
a114e9adb0
@ -7,6 +7,7 @@
|
|||||||
(ns app.http.management
|
(ns app.http.management
|
||||||
"Internal mangement HTTP API"
|
"Internal mangement HTTP API"
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.logging :as l]
|
||||||
[app.common.schema :as sm]
|
[app.common.schema :as sm]
|
||||||
[app.common.schema.generators :as sg]
|
[app.common.schema.generators :as sg]
|
||||||
[app.common.time :as ct]
|
[app.common.time :as ct]
|
||||||
@ -218,6 +219,12 @@
|
|||||||
props
|
props
|
||||||
(assoc props :subscription subscription)]
|
(assoc props :subscription subscription)]
|
||||||
|
|
||||||
|
(l/dbg :hint "update customer"
|
||||||
|
:profile-id (str id)
|
||||||
|
:subscription-type (get subscription :type)
|
||||||
|
:subscription-status (get subscription :status)
|
||||||
|
:subscription-quantity (get subscription :quantity))
|
||||||
|
|
||||||
(db/update! cfg :profile
|
(db/update! cfg :profile
|
||||||
{:props (db/tjson props)}
|
{:props (db/tjson props)}
|
||||||
{:id id}
|
{:id id}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user