diff --git a/apps/highlights/service.py b/apps/highlights/service.py index 6a3c561e22..f9522f03aa 100644 --- a/apps/highlights/service.py +++ b/apps/highlights/service.py @@ -130,7 +130,7 @@ def create(self, docs, **kwargs): highlights = [h for h in highlights if h != doc["highlights"]] highlight_on = False # highlight toggled off - updates = {"highlights": highlights, "_updated": item["_updated"], "_etag": item["_etag"]} + updates = {"highlights": highlights, "_etag": item["_etag"]} service.update(item["_id"], updates, item) publishedItems = publishedService.find({"item_id": item["_id"]}) diff --git a/features/highlights.feature b/features/highlights.feature index 4ff803623e..c9cdf53f3c 100644 --- a/features/highlights.feature +++ b/features/highlights.feature @@ -82,7 +82,6 @@ Feature: Highlights {"_items": [{"name": "highlight changed", "desks": ["#desks._id#"], "groups": ["group one", "group two"]}]} """ - @auth Scenario: Mark item for highlights Given "desks" @@ -113,7 +112,7 @@ Feature: Highlights Then we get list with 1 items """ {"_items": [{"headline": "test", "highlights": ["#highlights._id#"], - "_updated": "#archive._updated#", "_etag": "#archive._etag#"}]} + "_etag": "#archive._etag#"}]} """ When we post to "marked_for_highlights" @@ -123,7 +122,7 @@ Feature: Highlights And we get "archive" Then we get list with 1 items """ - {"_items": [{"highlights": [], "_updated": "#archive._updated#", "_etag": "#archive._etag#"}]} + {"_items": [{"highlights": [], "_etag": "#archive._etag#"}]} """ @auth