π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix multi part get
Neeraj Guptac62842e6bbd3
diff --git a/server/configurations/local.yaml b/server/configurations/local.yamlindex e89cdf38a3..707b9155aa 100644--- a/server/configurations/local.yaml+++ b/server/configurations/local.yaml@@ -175,8 +175,8 @@ s3:## Warning: For file-storage, do not specify buckets with any lock or versioning enabled.# The application does not handle these cases. By default, we will use the derived-storage or hot storage bucket- # as the primary bucket for file-data storage.- # file-data-storage:+ # as the primary bucket for file-data-config.+ # file-data-config:# mldata:# primaryBucket:# replicaBuckets: []diff --git a/server/pkg/repo/object_cleanup.go b/server/pkg/repo/object_cleanup.goindex b78910d052..d892b7157f 100644--- a/server/pkg/repo/object_cleanup.go+++ b/server/pkg/repo/object_cleanup.go@@ -26,10 +26,10 @@ func (repo *ObjectCleanupRepository) AddTempObject(tempObject ente.TempObject, evar err errorif tempObject.IsMultipart {_, err = repo.DB.Exec(`INSERT INTO temp_objects(object_key, expiration_time,upload_id,is_multipart, bucket_id)- VALUES($1, $2, $3, $4)`, tempObject.ObjectKey, expirationTime, tempObject.UploadID, tempObject.IsMultipart, tempObject.BucketId)+ VALUES($1, $2, $3, $4, $5)`, tempObject.ObjectKey, expirationTime, tempObject.UploadID, tempObject.IsMultipart, tempObject.BucketId)} else {- _, err = repo.DB.Exec(`INSERT INTO temp_objects(object_key, expiration_time)- VALUES($1, $2)`, tempObject.ObjectKey, expirationTime)+ _, err = repo.DB.Exec(`INSERT INTO temp_objects(object_key, expiration_time, bucket_id)+ VALUES($1, $2, $3)`, tempObject.ObjectKey, expirationTime, tempObject.BucketId)}return stacktrace.Propagate(err, "")}