1
0
mirror of https://github.com/etesync/server synced 2025-01-29 18:10:54 +00:00

Fix handling of legacy accounts that don't have collection type.

This commit is contained in:
Tom Hacohen 2020-12-29 10:27:35 +02:00
parent f67730f42d
commit e13f26ec56

View File

@ -88,7 +88,8 @@ class CollectionItemIn(CollectionItemCommon):
class CollectionCommon(BaseModel):
collectionType: bytes
# FIXME: remove optional once we finish collection-type-migration
collectionType: t.Optional[bytes]
collectionKey: bytes