diff --git a/domain/services.go b/domain/services.go index e2df49f..9fa3222 100644 --- a/domain/services.go +++ b/domain/services.go @@ -46,6 +46,8 @@ func (b BogFileService) SaveFile(ref FileReference, src io.Reader, size int64) e io.Copy(f, src) f.Close() + user_agent.FileQuota.Add(size) + b.user_agent_repo.Update(user_agent.ID, *user_agent) return nil }