fix: test error
This commit is contained in:
parent
b0b1de9c75
commit
8c9bdead03
@ -417,7 +417,10 @@ export class PluginACL extends Plugin {
|
|||||||
isThrough: true,
|
isThrough: true,
|
||||||
sortable: false,
|
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) => {
|
this.app.on('beforeInstallPlugin', async (plugin) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user