Skip to content

Commit

Permalink
Add user logging hook
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Mar 2, 2024
1 parent 58785df commit 97d9bd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion feathers-chat-ts/src/services/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ export const message = (app: Application) => {
]
},
before: {
all: [schemaHooks.validateQuery(messageQueryValidator), schemaHooks.resolveQuery(messageQueryResolver)],
all: [
schemaHooks.validateQuery(messageQueryValidator),
schemaHooks.resolveQuery(messageQueryResolver),
async (context) => {
console.log('params.user is', context.params.user)
}
],
find: [],
get: [],
create: [schemaHooks.validateData(messageDataValidator), schemaHooks.resolveData(messageDataResolver)],
Expand Down

0 comments on commit 97d9bd9

Please sign in to comment.