Skip to content

Commit

Permalink
fix(dictionaries): Incorrect attribute name in on_fetched event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Jan 7, 2025
1 parent 36445b8 commit 7275670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dictionaries/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from simplejson.errors import JSONDecodeError

from superdesk.core import json, get_current_app
from superdesk.resource_fields import ID_FIELD
from superdesk.resource_fields import ITEMS
from superdesk.flask import request
from superdesk.errors import SuperdeskApiError
from superdesk.services import BaseService
Expand Down Expand Up @@ -325,7 +325,7 @@ def on_fetched_item(self, doc):
self.__enhance_items([doc])

def on_fetched(self, docs):
self.__enhance_items(docs[ID_FIELD])
self.__enhance_items(docs[ITEMS])

def __enhance_items(self, docs):
for doc in docs:
Expand Down

0 comments on commit 7275670

Please sign in to comment.