1
0
mirror of https://github.com/etesync/server synced 2024-12-29 10:48:07 +00:00

Item batch/transaction: fix return data.

This commit is contained in:
Tom Hacohen 2020-12-27 17:39:47 +02:00
parent c6c52cfe11
commit a9bc08a98d

View File

@ -421,11 +421,11 @@ def item_bulk_common(data: ItemBatchIn, user: User, stoken: t.Optional[str], uid
def item_transaction(
collection_uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user)
):
item_bulk_common(data, user, stoken, collection_uid, validate_etag=True)
return item_bulk_common(data, user, stoken, collection_uid, validate_etag=True)
@collection_router.post("/{collection_uid}/item/batch/")
def item_batch(
collection_uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user)
):
item_bulk_common(data, user, stoken, collection_uid, validate_etag=False)
return item_bulk_common(data, user, stoken, collection_uid, validate_etag=False)