π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Fix empty app value when collection already exists
Neeraj Gupta42cb6ffed49a
diff --git a/server/pkg/controller/collections/collection.go b/server/pkg/controller/collections/collection.goindex 5bb1e2a6ca..5a2586c055 100644--- a/server/pkg/controller/collections/collection.go+++ b/server/pkg/controller/collections/collection.go@@ -44,6 +44,7 @@ func (c *CollectionController) Create(collection ente.Collection, ownerID int64)return ente.Collection{}, stacktrace.Propagate(keyErr, "Unable to get keyAttributes")}collectionType := collection.Type+ app := collection.Appcollection.Owner.ID = ownerIDcollection.UpdationTime = time.Microseconds()// [20th Dec 2022] Patch on server side untill majority of the existing mobile clients upgrade to a version higher > 0.7.0@@ -57,7 +58,7 @@ func (c *CollectionController) Create(collection ente.Collection, ownerID int64)collection, err := c.CollectionRepo.Create(collection)if err != nil {if err == ente.ErrUncategorizeCollectionAlreadyExists || err == ente.ErrFavoriteCollectionAlreadyExist {- dbCollection, err := c.CollectionRepo.GetCollectionByType(ownerID, collectionType, collection.App)+ dbCollection, err := c.CollectionRepo.GetCollectionByType(ownerID, collectionType, app)if err != nil {return ente.Collection{}, stacktrace.Propagate(err, "")}