diff --git a/dataswamp/services.go b/dataswamp/services.go index 27ae628..c35e032 100644 --- a/dataswamp/services.go +++ b/dataswamp/services.go @@ -117,6 +117,9 @@ func (s SwampFileService) OpenOutFile(ref swampfile.FileReference) (swampfile.Sw return nil, err } + ns.Download = ns.Download.Add(f.Size()) + s.namespace_repo.Update(ns.ID, *ns) + return f, nil }