From 68ba7dc48ee62294fe745e8bcd0e83aff4175dd8 Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Wed, 13 Nov 2024 17:04:58 +0100 Subject: [PATCH] Fix discardDraft() Document Service API example (#2284) --- docusaurus/docs/dev-docs/api/document-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/dev-docs/api/document-service.md b/docusaurus/docs/dev-docs/api/document-service.md index 78825a0e75..62db443c9a 100644 --- a/docusaurus/docs/dev-docs/api/document-service.md +++ b/docusaurus/docs/dev-docs/api/document-service.md @@ -634,7 +634,7 @@ If no `locale` parameter is passed, `discardDraft()` discards draft data and ove ```js -strapi.documents.discardDraft({ +strapi.documents('api::restaurant.restaurant').discardDraft({ documentId: 'a1b2c3d4e5f6g7h8i9j0klm', }); ```