aboutsummaryrefslogtreecommitdiff
path: root/services/polls
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-27 18:33:02 +0300
committerGitHub <noreply@github.com>2020-06-27 18:33:02 +0300
commit990edc953d734b1f1621fc0f5161c1eb978a3ea0 (patch)
treea8759f1d34e55d809a5b702fdca60a82117e1a2e /services/polls
parent08994137ddbeee5c3d407c215575e9681fd3962b (diff)
parent0a6a6be1b43635c60e76669ac2a7ee8581d9b183 (diff)
downloadwhich-api-990edc953d734b1f1621fc0f5161c1eb978a3ea0.tar.gz
Merge pull request #14 from which-ecosystem/feed
Feed endpoint
Diffstat (limited to 'services/polls')
-rw-r--r--services/polls/polls.hooks.ts6
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
}
};