mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: await addNewTexts
This commit is contained in:
parent
b20c8b05bd
commit
cec36c849f
@ -25,7 +25,7 @@ export class PluginLocalizationServer extends Plugin {
|
|||||||
|
|
||||||
addNewTexts = async (texts: { text: string; module: string }[], options?: any) => {
|
addNewTexts = async (texts: { text: string; module: string }[], options?: any) => {
|
||||||
texts = await this.resources.filterExists(texts, options?.transaction);
|
texts = await this.resources.filterExists(texts, options?.transaction);
|
||||||
this.db
|
await this.db
|
||||||
.getModel('localizationTexts')
|
.getModel('localizationTexts')
|
||||||
.bulkCreate(
|
.bulkCreate(
|
||||||
texts.map(({ text, module }) => ({
|
texts.map(({ text, module }) => ({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user