We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e97a4 commit da76bb1Copy full SHA for da76bb1
services/polls/polls.hooks.ts
@@ -6,6 +6,7 @@ import { Poll } from 'which-types';
6
import { PollSchema } from '../../models/polls/poll.schema';
7
import VoteModel from '../../models/votes/vote.model';
8
import sortByDate from '../../hooks/sortByDate';
9
+import signAuthority from '../../hooks/signAuthority';
10
11
12
const convertPoll = async (context: HookContext): Promise<HookContext> => {
@@ -44,7 +45,8 @@ const convertPoll = async (context: HookContext): Promise<HookContext> => {
44
45
46
export default {
47
before: {
- find: sortByDate
48
+ find: sortByDate,
49
+ create: signAuthority
50
},
51
after: {
52
all: convertPoll
0 commit comments