fix: await addNewTexts

This commit is contained in:
chenos 2025-04-11 23:39:20 +08:00 committed by GitHub
parent b20c8b05bd
commit cec36c849f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }) => ({