Skip to content

Commit

Permalink
chore: update example of document service use method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Apr 3, 2024
1 parent 266491e commit fc4a5dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/types/src/modules/documents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export type Service = {
utils: ServiceUtils;
/** Add a middleware for all uid's and a specific action
* @example - Add a default locale
* strapi.documents.use('findMany', (ctx, next) => {
* strapi.documents.use((ctx, next) => {
* if (!params.locale) params.locale = 'en'
* return next(ctx)
* return next()
* })
*/
use: (cb: Middleware.Middleware) => Service;
Expand Down

0 comments on commit fc4a5dd

Please sign in to comment.