Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add SmartAlbum entity type

Neeraj Guptaf76fa34e5baa
diff --git a/server/ente/userentity/entity.go b/server/ente/userentity/entity.go
index 09f0ddfd46..ede9b8a0dd 100644
--- a/server/ente/userentity/entity.go
+++ b/server/ente/userentity/entity.go
@@ -11,14 +11,18 @@ type EntityType string
const (
Location EntityType = "location"
- Person EntityType = "person"
+ // Person entity is deprecated and will be removed in the future.
+ //Deprecated ..
+ Person EntityType = "person"
// CGroup is a new version of Person entity, where the data is gzipped before encryption
CGroup EntityType = "cgroup"
+ // SmartAlbum is a new entity type for storing smart album config data
+ SmartAlbum EntityType = "smart_album"
)
func (et EntityType) IsValid() error {
switch et {
- case Location, Person, CGroup:
+ case Location, Person, CGroup, SmartAlbum:
return nil
}
return ente.NewBadRequestWithMessage(fmt.Sprintf("Invalid EntityType: %s", et))