A handler runs in its event's tenant (BOU-985).
A handler runs in its event's tenant (BOU-985).
(in-event-tenant tenant-runner handler)handler, called in the tenant of the event it gets: through tenant-runner
(fn [tenant-id f], tenant's :wagoe/in-tenant) when there is one, so it
runs in that tenant's schema, else with db/*tenant-id* bound. A handler
subscribed at boot ran with no tenant, so its writes went to public and a
push it sent reached every tenant.
`handler`, called in the tenant of the event it gets: through `tenant-runner` (fn [tenant-id f], tenant's `:wagoe/in-tenant`) when there is one, so it runs in that tenant's schema, else with `db/*tenant-id*` bound. A handler subscribed at boot ran with no tenant, so its writes went to public and a push it sent reached every tenant.
(visible events)events a caller bound to a tenant may see: its own and system events.
`events` a caller bound to a tenant may see: its own and system events.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |