From cec36c849f502994bfc7cb5b18a0976421113d6f Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 11 Apr 2025 23:39:20 +0800 Subject: [PATCH] fix: await addNewTexts --- .../plugins/@nocobase/plugin-localization/src/server/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts b/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts index 7bac0fcf63..8d04cac1b3 100644 --- a/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts +++ b/packages/plugins/@nocobase/plugin-localization/src/server/plugin.ts @@ -25,7 +25,7 @@ export class PluginLocalizationServer extends Plugin { addNewTexts = async (texts: { text: string; module: string }[], options?: any) => { texts = await this.resources.filterExists(texts, options?.transaction); - this.db + await this.db .getModel('localizationTexts') .bulkCreate( texts.map(({ text, module }) => ({