From 4bd77174f095a3e927b88faaa507162a013c3bbe Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 30 Jul 2024 12:52:08 +0300 Subject: [PATCH] docs-util: fix knowledge base for functions (#8337) --- .../src/classes/helpers/knowledge-base-factory.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/utils/packages/docs-generator/src/classes/helpers/knowledge-base-factory.ts b/www/utils/packages/docs-generator/src/classes/helpers/knowledge-base-factory.ts index c079665163..98300513c4 100644 --- a/www/utils/packages/docs-generator/src/classes/helpers/knowledge-base-factory.ts +++ b/www/utils/packages/docs-generator/src/classes/helpers/knowledge-base-factory.ts @@ -420,7 +420,7 @@ class KnowledgeBaseFactory { const { isPlural, singularName, pluralName } = this.getPluralConfigForFunction({ str, - replacement: "upsert", + replacement: "listAndCount", options, }) return `The list of ${ @@ -434,7 +434,7 @@ class KnowledgeBaseFactory { const { isPlural, singularName, pluralName } = this.getPluralConfigForFunction({ str, - replacement: "upsert", + replacement: "list", options, }) return `The list of ${isPlural ? pluralName : singularName}.` @@ -446,7 +446,7 @@ class KnowledgeBaseFactory { const { isPlural, singularName, pluralName } = this.getPluralConfigForFunction({ str, - replacement: "upsert", + replacement: "retrieve", options, }) return `The retrieved ${isPlural ? pluralName : singularName}.` @@ -458,7 +458,7 @@ class KnowledgeBaseFactory { const { isPlural, singularName, pluralName } = this.getPluralConfigForFunction({ str, - replacement: "upsert", + replacement: "create", options, }) return `The created ${isPlural ? pluralName : singularName}.` @@ -470,7 +470,7 @@ class KnowledgeBaseFactory { const { isPlural, singularName, pluralName } = this.getPluralConfigForFunction({ str, - replacement: "upsert", + replacement: "update", options, }) return `The updated ${isPlural ? pluralName : singularName}.`