fix: test error

This commit is contained in:
chenos 2023-10-07 22:33:09 +08:00
parent b0b1de9c75
commit 8c9bdead03

View File

@ -417,7 +417,10 @@ export class PluginACL extends Plugin {
isThrough: true,
sortable: false,
};
await this.db.getRepository('collections').create({ values: data });
const r = this.db.getRepository('collections');
if (r) {
await r.create({ values: data });
}
});
this.app.on('beforeInstallPlugin', async (plugin) => {