mirror of
https://github.com/etesync/server
synced 2024-12-29 10:48:07 +00:00
rename
This commit is contained in:
parent
8d09e40b3b
commit
1e60938430
@ -82,7 +82,7 @@ async def list_multi(
|
||||
return response
|
||||
|
||||
|
||||
class CollectionItemContent(BaseModel):
|
||||
class CollectionItemRevision(BaseModel):
|
||||
uid: str
|
||||
meta: bytes
|
||||
deleted: bool
|
||||
@ -94,7 +94,7 @@ class Item(BaseModel):
|
||||
version: int
|
||||
etag: t.Optional[str]
|
||||
encryptionKey: t.Optional[bytes]
|
||||
content: CollectionItemContent
|
||||
content: CollectionItemRevision
|
||||
|
||||
|
||||
class CollectionIn(BaseModel):
|
||||
@ -103,7 +103,7 @@ class CollectionIn(BaseModel):
|
||||
item: Item
|
||||
|
||||
|
||||
def process_revisions_for_item(item: models.CollectionItem, revision_data: CollectionItemContent):
|
||||
def process_revisions_for_item(item: models.CollectionItem, revision_data: CollectionItemRevision):
|
||||
chunks_objs = []
|
||||
|
||||
revision = models.CollectionItemRevision(**revision_data.dict(exclude={"chunks"}), item=item)
|
||||
|
Loading…
Reference in New Issue
Block a user