From e13f26ec56f03321ad5f8471f4a5a33f4a6f0be0 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 29 Dec 2020 10:27:35 +0200 Subject: [PATCH] Fix handling of legacy accounts that don't have collection type. --- etebase_fastapi/collection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 3e4d3e8..5c6e6b6 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -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