Account API endpoint fixes
This commit is contained in:
parent
f79348817f
commit
7ca9afad57
7 changed files with 15 additions and 13 deletions
|
@ -243,6 +243,7 @@ func (a *Manager) RemoveExpiredTokens() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ChangeSettings persists the user settings
|
||||
func (a *Manager) ChangeSettings(user *User) error {
|
||||
settings, err := json.Marshal(user.Prefs)
|
||||
if err != nil {
|
||||
|
@ -254,6 +255,8 @@ func (a *Manager) ChangeSettings(user *User) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// EnqueueStats adds the user to a queue which writes out user stats (messages, emails, ..) in
|
||||
// batches at a regular interval
|
||||
func (a *Manager) EnqueueStats(user *User) {
|
||||
a.mu.Lock()
|
||||
defer a.mu.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue