diff options
Diffstat (limited to 'services/polls/polls.hooks.ts')
-rw-r--r-- | services/polls/polls.hooks.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/polls/polls.hooks.ts b/services/polls/polls.hooks.ts index 13d6f63..77fcc7a 100644 --- a/services/polls/polls.hooks.ts +++ b/services/polls/polls.hooks.ts @@ -1,8 +1,12 @@ import convertPoll from '../../hooks/convertPoll'; +import sortByDate from '../../hooks/sortByDate'; export default { + before: { + find: sortByDate + }, after: { - all: [convertPoll] + all: convertPoll } }; |