mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-08 23:37:28 +02:00
[#275] added support to customize the default user email templates from the Admin UI
This commit is contained in:
1 parent
1de56d3d9e
commit
7d10d20de1
47 files changed
+1648
-1188
No files matched your search
@@ -27,6 +27,9 @@ func (b *Broker) Clients() map[string]Client {
|
||||
//
|
||||
// Returns non-nil error when client with clientId is not registered.
|
||||
func (b *Broker) ClientById(clientId string) (Client, error) {
|
||||
b.mux.RLock()
|
||||
defer b.mux.RUnlock()
|
||||
|
||||
client, ok := b.clients[clientId]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("No client associated with connection ID %q", clientId)
|
||||
|
||||
Reference in new issue
Block a user