aboutsummaryrefslogtreecommitdiff
path: root/hooks/signAuthority.ts
blob: b4d74b8d179184078d4507c557cd27ce575d5663 (plain)
1
2
3
4
5
6
7
8
import { HookContext } from '@feathersjs/feathers';

export default async (context: HookContext): Promise<HookContext> => {
  const { params: { user } } = context;
  context.data.authorId = user._id;
  return context;
};