mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Update plugin.ts
This commit is contained in:
parent
401984d9d9
commit
5a9686c60e
@ -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 }) => ({
|
||||
|
Loading…
x
Reference in New Issue
Block a user