Skip to content

Commit

Permalink
Fix bug in the middlewares example (#2358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qbject authored Jan 16, 2025
1 parent cc99888 commit 98d9fba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ Failing to do this will break the Strapi application.
```js
const applyTo = ['api::article.article'];

strapi.documents.use((context, next) => {
strapi.documents.use(async (context, next) => {
// Only run for certain content types
if (!applyTo.includes(context.uid)) {
return next();
Expand Down

0 comments on commit 98d9fba

Please sign in to comment.