There was an error while loading. Please reload this page.
1 parent cc99888 commit 98d9fbaCopy full SHA for 98d9fba
docusaurus/docs/dev-docs/api/document-service/middlewares.md
@@ -347,7 +347,7 @@ Failing to do this will break the Strapi application.
347
```js
348
const applyTo = ['api::article.article'];
349
350
-strapi.documents.use((context, next) => {
+strapi.documents.use(async (context, next) => {
351
// Only run for certain content types
352
if (!applyTo.includes(context.uid)) {
353
return next();
0 commit comments