mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-19 02:23:00 +08:00
fix(plugin-multi-portal): detect empty app version
This commit is contained in:
@@ -3543,7 +3543,7 @@ export class PluginMultiPortalServer extends Plugin {
|
||||
|
||||
async install() {
|
||||
const version = await this.app.version.get();
|
||||
if (version === null) {
|
||||
if (!version) {
|
||||
await ensureDefaultRoleMultiPortalAccess(this.db);
|
||||
await seedFreshMultiPortals(this.db);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user