Skip to content

Commit 98d9fba

Browse files
authored
Fix bug in the middlewares example (#2358)
1 parent cc99888 commit 98d9fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docusaurus/docs/dev-docs/api/document-service/middlewares.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ Failing to do this will break the Strapi application.
347347
```js
348348
const applyTo = ['api::article.article'];
349349

350-
strapi.documents.use((context, next) => {
350+
strapi.documents.use(async (context, next) => {
351351
// Only run for certain content types
352352
if (!applyTo.includes(context.uid)) {
353353
return next();

0 commit comments

Comments
 (0)