[#275] added support to customize the default user email templates from the Admin UI

This commit is contained in:
Gani Georgiev committed 2022-08-14 19:30:45 +03:00
1 parent 1de56d3d9e
commit 7d10d20de1
47 files changed
+1648 -1188

No files matched your search

+3
View File
@@ -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)